mirror of https://github.com/phonopy/phonopy.git
25 lines
677 B
Bash
Executable File
25 lines
677 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
yum install -y hdf5 freetype freetype-devel pkgconfig libpng-devel
|
|
|
|
for PYBIN in /opt/python/*/bin; do
|
|
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/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 == *"34"* ]]; then
|
|
"${PYBIN}/pip" install phonopy --no-index -f /io/wheelhouse
|
|
(cd "$HOME"; "${PYBIN}/nosetests" phonopy)
|
|
fi
|
|
done
|