Skip to content

Commit

Permalink
improve build_wheels.sh somewhat
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Apr 27, 2022
1 parent c83a60a commit 186d505
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions build_wheels.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
#!/bin/sh

set -e
VERSION=0.1.4
VERSION=0.1.5
U=$(id -u)
G=$(id -g)

rm -f *.whl dist/*
python setup.py sdist --formats=zip,gztar
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 "$@"
}


python setup.py clean
rm -rf *.whl dist/* _skbuild py/soundswallower.egg-info
python setup.py sdist --formats=zip
docker pull quay.io/pypa/manylinux1_x86_64
docker run -v $PWD:$PWD -w $PWD -it quay.io/pypa/manylinux1_x86_64 /opt/python/cp39-cp39/bin/pip wheel dist/soundswallower-$VERSION.zip
docker run -v $PWD:$PWD -w $PWD -it quay.io/pypa/manylinux1_x86_64 /opt/python/cp38-cp38/bin/pip wheel dist/soundswallower-$VERSION.zip
docker run -v $PWD:$PWD -w $PWD -it quay.io/pypa/manylinux1_x86_64 /opt/python/cp37-cp37m/bin/pip wheel dist/soundswallower-$VERSION.zip
many1_run /opt/python/cp39-cp39/bin/pip wheel dist/soundswallower-$VERSION.zip
many1_run /opt/python/cp38-cp38/bin/pip wheel dist/soundswallower-$VERSION.zip
many1_run /opt/python/cp37-cp37m/bin/pip wheel dist/soundswallower-$VERSION.zip
docker pull quay.io/pypa/manylinux2014_x86_64
docker run -v $PWD:$PWD -w $PWD -it quay.io/pypa/manylinux2014_x86_64 /opt/python/cp310-cp310/bin/pip wheel dist/soundswallower-$VERSION.zip
for w in *.whl; do docker run -v $PWD:$PWD -w $PWD -it quay.io/pypa/manylinux2014_x86_64 auditwheel repair $w; done
many2014_run /opt/python/cp310-cp310/bin/pip wheel dist/soundswallower-$VERSION.zip
for w in *.whl; do
docker run -v $PWD:$PWD -u $U:$G -w $PWD -it \
quay.io/pypa/manylinux2014_x86_64 auditwheel repair $w
done

0 comments on commit 186d505

Please sign in to comment.