Skip to content

Commit

Permalink
add wheel creation script, usage
Browse files Browse the repository at this point in the history
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
  • Loading branch information
erwincoumans committed Jan 29, 2025
1 parent 69783a8 commit bda0036
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions wheel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -e -x


# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install -r /io/dev/bullet3/requirements.txt
"${PYBIN}/pip" wheel /io/dev/bullet3 -w wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
"${PYBIN}/pip" install python-manylinux-demo --no-index -f /io/wheelhouse
(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
done

0 comments on commit bda0036

Please sign in to comment.