Skip to content

Commit a73e1bc

Browse files
committed
Use "uv build" instead of "uv run python -m build"
1 parent f232031 commit a73e1bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

make_dist.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ set -euo pipefail
44

55
# Create a source distribution and platform-specific wheel distributions.
66

7-
PYTHON="uv run --locked --with build python"
8-
97
make_wheel()
108
{
119
# This makes sure that only the appropriate libraries are copied:
12-
rm -rf sounddevice.egg-info/
10+
rm -rf build/
1311

14-
PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=${2:-} \
15-
$PYTHON -m build
12+
# This builds an sdist (including libs) and uses that to build a wheel:
13+
PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=${2:-} uv build
1614
}
1715

1816
# This is always 64bit:
@@ -26,3 +24,5 @@ make_wheel Windows arm64
2624

2725
# This creates a "pure" wheel and an sdist without libraries:
2826
make_wheel Linux
27+
28+
# NB: "Linux" must be last to get a clean sdist!

0 commit comments

Comments
 (0)