diff --git a/make_dist.sh b/make_dist.sh index f0cbcab..3affd01 100755 --- a/make_dist.sh +++ b/make_dist.sh @@ -4,15 +4,13 @@ set -euo pipefail # Create a source distribution and platform-specific wheel distributions. -PYTHON="uv run --locked --with build python" - make_wheel() { # This makes sure that only the appropriate libraries are copied: - rm -rf sounddevice.egg-info/ + rm -rf build/ - PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=${2:-} \ - $PYTHON -m build + # This builds an sdist (including libs) and uses that to build a wheel: + PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=${2:-} uv build } # This is always 64bit: @@ -26,3 +24,5 @@ make_wheel Windows arm64 # This creates a "pure" wheel and an sdist without libraries: make_wheel Linux + +# NB: "Linux" must be last to get a clean sdist!