-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|