Skip to content

Commit bda0036

Browse files
committed
add wheel creation script, usage
assume bullet3 is located in ~/dev/bullet3 and run this docker command from ~ sudo docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 then in the docker cd io/dev/bullet3 ./wheel.sh after exit of docker, the wheels are in ~/wheelhouse and can be uploaded to pypi
1 parent 69783a8 commit bda0036

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

wheel.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
5+
# Compile wheels
6+
for PYBIN in /opt/python/*/bin; do
7+
"${PYBIN}/pip" install -r /io/dev/bullet3/requirements.txt
8+
"${PYBIN}/pip" wheel /io/dev/bullet3 -w wheelhouse/
9+
done
10+
11+
# Bundle external shared libraries into the wheels
12+
for whl in wheelhouse/*.whl; do
13+
auditwheel repair "$whl" -w /io/wheelhouse/
14+
done
15+
16+
# Install packages and test
17+
for PYBIN in /opt/python/*/bin/; do
18+
"${PYBIN}/pip" install python-manylinux-demo --no-index -f /io/wheelhouse
19+
(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
20+
done
21+

0 commit comments

Comments
 (0)