File: make_dist.sh

package info (click to toggle)
python-sounddevice 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 480 kB
  • sloc: python: 2,482; sh: 12; makefile: 10
file content (26 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download
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
#!/bin/bash

set -euo pipefail

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

PYTHON=python3

make_wheel()
{
  PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=${2:-} \
    $PYTHON -m build
}

# This is always 64bit:
make_wheel Darwin

make_wheel Windows 32bit

make_wheel Windows 64bit

# 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