We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4a9a9 commit 433e759Copy full SHA for 433e759
build_wheels.py
@@ -0,0 +1,23 @@
1
+import os
2
+import shutil
3
+
4
+architectures = dict(darwin=['64bit'],
5
+ win32=['32bit', '64bit'],
6
+ noplatform='noarch')
7
8
+def cleanup():
9
+ shutil.rmtree('build', ignore_errors=True)
10
+ try:
11
+ os.remove('_soundfile.py')
12
+ except:
13
+ pass
14
15
+for platform, archs in architectures.items():
16
+ os.environ['PYSOUNDFILE_PLATFORM'] = platform
17
+ for arch in archs:
18
+ os.environ['PYSOUNDFILE_ARCHITECTURE'] = arch
19
+ cleanup()
20
+ os.system('python setup.py bdist_wheel')
21
22
+cleanup()
23
+os.system('python setup.py sdist')
0 commit comments