forked from petercorke/robotics-toolbox-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-wheels.sh
More file actions
executable file
·33 lines (27 loc) · 773 Bytes
/
build-wheels.sh
File metadata and controls
executable file
·33 lines (27 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e -u -x
function repair_wheel {
wheel="$1"
if ! auditwheel show "$wheel"; then
echo "Skipping non-platform wheel $wheel"
else
auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
fi
}
cd ./io
# Compile wheels
for PYBIN in /opt/python/cp3[6-8]*/bin; do
"${PYBIN}/pip" install .
"${PYBIN}/pip" install pytest
"${PYBIN}/pip" wheel /io/ --no-deps -w wheelhouse/
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
repair_wheel "$whl"
done
# Install packages and test
#for PYBIN in /opt/python/cp3[6-8]*/bin/; do
# "${PYBIN}/pip" install roboticstoolbox-python[dev,collision,vpython] --no-index -f /io/wheelhouse
# ("${PYBIN}/pytest")
#done
ls ./wheelhouse