summaryrefslogtreecommitdiff
path: root/make_dist.sh
blob: a6b3be6d5705ca52da5043a29938a45687700d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

# 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
}

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

make_wheel Windows 32bit

make_wheel Windows 64bit

$PYTHON setup.py clean --all