Skip to content

Commit f4607b3

Browse files
committed
Update build script to use "build"
1 parent 31b2460 commit f4607b3

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

make_dist.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
#!/bin/sh
22

3+
set -euo pipefail
4+
35
# Create a source distribution and platform-specific wheel distributions.
46

57
PYTHON=python3
68

79
make_wheel()
810
{
9-
$PYTHON setup.py clean --all
1011
PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=$2 \
11-
$PYTHON setup.py bdist_wheel
12+
$PYTHON -m build
1213
}
1314

14-
rm -rf sounddevice.egg-info/
15-
$PYTHON setup.py clean --all
16-
$PYTHON setup.py sdist
17-
18-
# This creates a "pure" wheel:
19-
make_wheel Linux
20-
2115
# This is always 64bit:
2216
make_wheel Darwin
2317

2418
make_wheel Windows 32bit
2519

2620
make_wheel Windows 64bit
2721

28-
$PYTHON setup.py clean --all
22+
# This makes sure that the libraries are not copied to the final sdist:
23+
rm -rf sounddevice.egg-info/
24+
25+
# This creates a "pure" wheel:
26+
make_wheel Linux

0 commit comments

Comments
 (0)