forked from cmusphinx/pocketsphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_wheels.sh
32 lines (29 loc) · 1002 Bytes
/
build_wheels.sh
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
29
30
31
32
#!/bin/sh
set -e
VERSION=5.0.0rc3
U=$(id -u)
G=$(id -g)
many1_run() {
docker run -v $PWD:$PWD -v $HOME/.cache/pip:/.cache/pip -u $U:$G -w $PWD -it quay.io/pypa/manylinux1_x86_64 "$@"
}
many2014_run() {
docker run -v $PWD:$PWD -v $HOME/.cache/pip:/.cache/pip -u $U:$G -w $PWD -it quay.io/pypa/manylinux2014_x86_64 "$@"
}
many224_run() {
docker run -v $PWD:$PWD -v $HOME/.cache/pip:/.cache/pip -u $U:$G -w $PWD -it quay.io/pypa/manylinux_2_24_x86_64 "$@"
}
python setup.py clean || true
rm -rf *.whl dist/* py/pocketsphinx.egg-info
python -m build --sdist
docker pull quay.io/pypa/manylinux1_x86_64
for version in cp39-cp39 cp38-cp38 cp37-cp37m; do
many1_run /opt/python/$version/bin/pip wheel dist/pocketsphinx-$VERSION.tar.gz
done
docker pull quay.io/pypa/manylinux2014_x86_64
for version in cp310-cp310; do
many2014_run /opt/python/$version/bin/pip -vv wheel dist/pocketsphinx-$VERSION.tar.gz
done
for w in *.whl; do
many2014_run auditwheel repair -w dist $w
rm $w
done