lbry-rocksdb/scripts/make-wheels.sh

26 lines
427 B
Bash
Raw Normal View History

2021-08-26 11:42:06 +02:00
set -ex
2021-11-09 19:36:14 +01:00
apt install -y binutils cmake
cd lbry-rocksdb
2021-08-26 11:42:06 +02:00
mkdir -p dist
2021-11-09 19:36:14 +01:00
make clean && make
2021-08-26 11:42:06 +02:00
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 -