samplerate 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {samplerate-0.2.1 → samplerate-0.2.2}/CMakeLists.txt +3 -2
- {samplerate-0.2.1 → samplerate-0.2.2}/PKG-INFO +1 -1
- {samplerate-0.2.1 → samplerate-0.2.2}/external/CMakeLists.txt +1 -1
- {samplerate-0.2.1 → samplerate-0.2.2}/pyproject.toml +1 -1
- {samplerate-0.2.1 → samplerate-0.2.2}/setup.py +8 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.egg-info/PKG-INFO +1 -1
- {samplerate-0.2.1 → samplerate-0.2.2}/.gitattributes +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/.github/workflows/pythonpackage.yml +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/.gitignore +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/LICENSE.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/MANIFEST.in +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/README.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/Makefile +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/changelog.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/conf.py +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/index.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/samplerate/converters.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/samplerate/exceptions.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/samplerate/index.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/docs/samplerate/samplerate.rst +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/examples/play_modulation.py +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/requirements.txt +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/setup.cfg +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.cpp +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.egg-info/SOURCES.txt +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.egg-info/dependency_links.txt +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.egg-info/requires.txt +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/src/samplerate.egg-info/top_level.txt +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/tests/test_api.py +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/tests/test_exception.py +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/tests/test_resampling.py +0 -0
- {samplerate-0.2.1 → samplerate-0.2.2}/tests/test_resize.py +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
# https://stackoverflow.com/questions/51907755/building-a-pybind11-module-with-cpp-and-cuda-sources-using-cmake
|
2
2
|
|
3
3
|
cmake_minimum_required(VERSION 3.15)
|
4
|
+
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
|
4
5
|
|
5
6
|
message(STATUS "Found Python prefix ${PYTHON_PREFIX}")
|
6
7
|
list(PREPEND CMAKE_PREFIX_PATH "${PYTHON_PREFIX}")
|
@@ -8,7 +9,7 @@ list(PREPEND CMAKE_PREFIX_PATH "${PYTHON_PREFIX}")
|
|
8
9
|
project(python-samplerate)
|
9
10
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
10
11
|
|
11
|
-
cmake_policy(SET
|
12
|
+
cmake_policy(SET CMP0148 NEW)
|
12
13
|
|
13
14
|
# adds the external dependencies
|
14
15
|
add_subdirectory(external)
|
@@ -25,7 +26,7 @@ endif()
|
|
25
26
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
|
26
27
|
CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
|
27
28
|
(CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32))
|
28
|
-
target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra)
|
29
|
+
target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra -fPIC)
|
29
30
|
endif()
|
30
31
|
|
31
32
|
### stick the package and libsamplerate version into the module
|
@@ -4,7 +4,7 @@ include(FetchContent)
|
|
4
4
|
FetchContent_Declare(
|
5
5
|
pybind11
|
6
6
|
GIT_REPOSITORY https://github.com/pybind/pybind11
|
7
|
-
GIT_TAG
|
7
|
+
GIT_TAG f5fbe867d2d26e4a0a9177a51f6e568868ad3dc8 # 3.0.1
|
8
8
|
)
|
9
9
|
|
10
10
|
FetchContent_MakeAvailable(pybind11)
|
@@ -105,6 +105,14 @@ class CMakeBuild(build_ext):
|
|
105
105
|
if "universal2" in self.plat_name:
|
106
106
|
cmake_args += ["-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64"]
|
107
107
|
|
108
|
+
# Set MACOSX_DEPLOYMENT_TARGET for macOS builds.
|
109
|
+
if (
|
110
|
+
self.plat_name.startswith("macosx-")
|
111
|
+
and "MACOSX_DEPLOYMENT_TARGET" not in os.environ
|
112
|
+
):
|
113
|
+
target_version = self.plat_name.split("-")[1]
|
114
|
+
os.environ["MACOSX_DEPLOYMENT_TARGET"] = target_version
|
115
|
+
|
108
116
|
# Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level
|
109
117
|
# across all generators.
|
110
118
|
if "CMAKE_BUILD_PARALLEL_LEVEL" not in os.environ:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|