2021-08-26 11:42:06 +02:00
|
|
|
set -ex
|
|
|
|
|
2021-11-09 19:45:33 +01:00
|
|
|
apt install -y binutils
|
2021-11-09 19:36:14 +01:00
|
|
|
|
|
|
|
cd lbry-rocksdb
|
2021-08-26 11:42:06 +02:00
|
|
|
mkdir -p dist
|
|
|
|
|
|
|
|
function build_wheel() {
|
2021-11-09 19:36:14 +01:00
|
|
|
/opt/python/$1/bin/pip install cython wheel
|
2021-08-26 11:42:06 +02:00
|
|
|
/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
|
2021-11-09 19:36:14 +01:00
|
|
|
rm setuptools-*.whl
|
2021-08-26 11:42:06 +02:00
|
|
|
cd -
|