summaryrefslogtreecommitdiff
path: root/make_dist.sh
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2022-06-04 20:11:53 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2022-06-04 20:11:53 +0200
commitf4607b357e5dd1dddb1858dafdf8e50606f55907 (patch)
tree2971ed13aad5152cf6924d3e726c98149c57f4a1 /make_dist.sh
parent31b24606295b457ee1b835e4f1fca40f30a2cfec (diff)
Update build script to use "build"
Diffstat (limited to 'make_dist.sh')
-rwxr-xr-xmake_dist.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/make_dist.sh b/make_dist.sh
index a6b3be6..600edeb 100755
--- a/make_dist.sh
+++ b/make_dist.sh
@@ -1,23 +1,17 @@
#!/bin/sh
+set -euo pipefail
+
# Create a source distribution and platform-specific wheel distributions.
PYTHON=python3
make_wheel()
{
- $PYTHON setup.py clean --all
PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=$2 \
- $PYTHON setup.py bdist_wheel
+ $PYTHON -m build
}
-rm -rf sounddevice.egg-info/
-$PYTHON setup.py clean --all
-$PYTHON setup.py sdist
-
-# This creates a "pure" wheel:
-make_wheel Linux
-
# This is always 64bit:
make_wheel Darwin
@@ -25,4 +19,8 @@ make_wheel Windows 32bit
make_wheel Windows 64bit
-$PYTHON setup.py clean --all
+# This makes sure that the libraries are not copied to the final sdist:
+rm -rf sounddevice.egg-info/
+
+# This creates a "pure" wheel:
+make_wheel Linux