Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions make_dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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!
Loading