-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from bastibe/bastibe/0.11.0
Release 0.11.0
- Loading branch information
Showing
6 changed files
with
100 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule _soundfile_data
updated
13 files
+51 −0 | .github/workflows/build-libs.yml | |
+24 −74 | README.md | |
+ − | libsndfile.dylib | |
+ − | libsndfile32bit.dll | |
+ − | libsndfile64bit.dll | |
+ − | libsndfile_32bit.dll | |
+ − | libsndfile_64bit.dll | |
+ − | libsndfile_arm64.dylib | |
+ − | libsndfile_x86_64.dylib | |
+96 −0 | mac_build.sh | |
+4 −0 | triplets/README.md | |
+9 −0 | triplets/x64-windows-custom.cmake | |
+9 −0 | triplets/x86-windows-custom.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
import os | ||
import shutil | ||
|
||
architectures = dict(darwin=['64bit'], | ||
architectures = dict(darwin=['x86_64', 'arm64'], | ||
win32=['32bit', '64bit'], | ||
noplatform='noarch') | ||
|
||
def cleanup(): | ||
os.environ['PYSOUNDFILE_PLATFORM'] = '' | ||
os.environ['PYSOUNDFILE_ARCHITECTURE'] = '' | ||
shutil.rmtree('build', ignore_errors=True) | ||
shutil.rmtree('soundfile.egg-info', ignore_errors=True) | ||
try: | ||
os.remove('_soundfile.py') | ||
except: | ||
pass | ||
|
||
for platform, archs in architectures.items(): | ||
os.environ['PYSOUNDFILE_PLATFORM'] = platform | ||
for arch in archs: | ||
os.environ['PYSOUNDFILE_PLATFORM'] = platform | ||
os.environ['PYSOUNDFILE_ARCHITECTURE'] = arch | ||
os.system('python3 setup.py bdist_wheel') | ||
cleanup() | ||
os.system('python setup.py bdist_wheel') | ||
|
||
os.system('python3 setup.py sdist') | ||
cleanup() | ||
os.system('python setup.py sdist') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,27 +5,14 @@ | |
from setuptools.command.test import test as TestCommand | ||
import sys | ||
|
||
PYTHON_INTERPRETERS = '.'.join([ | ||
'cp26', 'cp27', | ||
'cp32', 'cp33', 'cp34', 'cp35', 'cp36', | ||
'pp27', | ||
'pp32', 'pp33', | ||
]) | ||
MACOSX_VERSIONS = '.'.join([ | ||
'macosx_10_5_x86_64', | ||
'macosx_10_6_intel', | ||
'macosx_10_9_intel', | ||
'macosx_10_9_x86_64', | ||
]) | ||
|
||
# environment variables for cross-platform package creation | ||
platform = os.environ.get('PYSOUNDFILE_PLATFORM', sys.platform) | ||
architecture0 = os.environ.get('PYSOUNDFILE_ARCHITECTURE', architecture()[0]) | ||
|
||
if platform == 'darwin': | ||
libname = 'libsndfile.dylib' | ||
libname = 'libsndfile_' + architecture0 + '.dylib' | ||
elif platform == 'win32': | ||
libname = 'libsndfile' + architecture0 + '.dll' | ||
libname = 'libsndfile_' + architecture0 + '.dll' | ||
else: | ||
libname = None | ||
|
||
|
@@ -70,9 +57,12 @@ class bdist_wheel_half_pure(bdist_wheel): | |
"""Create OS-dependent, but Python-independent wheels.""" | ||
|
||
def get_tag(self): | ||
pythons = 'py2.py3.' + PYTHON_INTERPRETERS | ||
pythons = 'py2.py3' | ||
if platform == 'darwin': | ||
oses = MACOSX_VERSIONS | ||
if architecture0 == 'x86_64': | ||
oses = 'macosx_10_9_x86_64.macosx_11_0_x86_64' | ||
else: | ||
oses = 'macosx_10_9_arm64.macosx_11_0_arm64' | ||
elif platform == 'win32': | ||
if architecture0 == '32bit': | ||
oses = 'win32' | ||
|
@@ -87,7 +77,7 @@ def get_tag(self): | |
|
||
setup( | ||
name='soundfile', | ||
version='0.10.3post1', | ||
version='0.11.0', | ||
description='An audio library based on libsndfile, CFFI and NumPy', | ||
author='Bastian Bechtold', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters