Create make-wheels.sh
This commit is contained in:
parent
c7b12fd4eb
commit
7acdcb8134
1 changed files with 20 additions and 0 deletions
20
scripts/make-wheels.sh
Normal file
20
scripts/make-wheels.sh
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
mkdir -p dist
|
||||||
|
make
|
||||||
|
|
||||||
|
function build_wheel() {
|
||||||
|
/opt/python/$1/bin/pip install cython
|
||||||
|
/opt/python/$1/bin/pip wheel . -f . -w dist
|
||||||
|
}
|
||||||
|
|
||||||
|
build_wheel cp37-cp37m
|
||||||
|
build_wheel cp38-cp38
|
||||||
|
build_wheel cp39-cp39
|
||||||
|
build_wheel pp37-pypy37_pp73
|
||||||
|
|
||||||
|
cd dist
|
||||||
|
for f in ./*linux_*;
|
||||||
|
do if [ -f $f ]; then auditwheel repair $f -w . ; rm $f; fi;
|
||||||
|
done
|
||||||
|
cd -
|
Loading…
Reference in a new issue