-
Notifications
You must be signed in to change notification settings - Fork 112
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
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