forked from phonopy/phonopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-wheels.sh
executable file
·33 lines (27 loc) · 944 Bytes
/
build-wheels.sh
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
}
yum install -y hdf5 freetype freetype-devel pkgconfig libpng-devel
for PYBIN in /opt/python/*/bin; do
if [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]] || [[ $PYBIN == *"38"* ]] || [[ $PYBIN == *"39"* ]]; then
"${PYBIN}/pip" install -r /io/dev-requirements.txt
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
fi
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/phonopy*.whl; do
repair_wheel "$whl"
done
# Install packages and test
# for PYBIN in /opt/python/*/bin/; do
# if [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]] || [[ $PYBIN == *"38"* ]]; then
# "${PYBIN}/pip" install phonopy --no-index -f /io/wheelhouse
# fi
# done