mirror of https://github.com/phonopy/phonopy.git
Update build-wheels.sh to avoid building error
This commit is contained in:
parent
2906e47f90
commit
f553291541
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue