Update build-wheels.sh to avoid building error

This commit is contained in:
Atsushi Togo 2020-05-02 19:31:10 +09:00
parent 2906e47f90
commit f553291541
1 changed files with 3 additions and 3 deletions

View File

@ -4,20 +4,20 @@ set -e -x
yum install -y hdf5 freetype freetype-devel pkgconfig libpng-devel
for PYBIN in /opt/python/*/bin; do
if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
if [[ ! $PYBIN == *"34"* ]]; 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/*.whl; do
for whl in wheelhouse/phonopy*.whl; do
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
done
# Install packages and test
for PYBIN in /opt/python/*/bin/; do
if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
if [[ ! $PYBIN == *"34"* ]]; then
"${PYBIN}/pip" install phonopy --no-index -f /io/wheelhouse
(cd "$HOME"; "${PYBIN}/nosetests" phonopy)
fi