mirror of https://github.com/phonopy/phonopy.git
Update .travis.yml to create wheel of phonopy
This commit is contained in:
parent
b48082059e
commit
2907ab3190
|
@ -0,0 +1,68 @@
|
|||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
# Install a system package required by our library
|
||||
# yum install -y numpy
|
||||
|
||||
# ls /opt/python
|
||||
|
||||
# # Compile wheels
|
||||
# for PYBIN in /opt/python/cp27*/bin; do
|
||||
# # "${PYBIN}/pip" install --no-binary numpy
|
||||
# "${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
||||
# done
|
||||
|
||||
# for PYBIN in /opt/python/cp35*/bin; do
|
||||
# # "${PYBIN}/pip" install --no-binary numpy
|
||||
# "${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
||||
# done
|
||||
|
||||
# for PYBIN in /opt/python/cp36*/bin; do
|
||||
# # "${PYBIN}/pip" install --no-binary numpy
|
||||
# "${PYBIN}/pip" wheel /io/ -w wheelhouse/
|
||||
# done
|
||||
|
||||
# # Bundle external shared libraries into the wheels
|
||||
# ls wheelhouse/*.whl
|
||||
# for whl in wheelhouse/spglib*.whl; do
|
||||
# auditwheel repair "$whl" -w /io/wheelhouse/
|
||||
# done
|
||||
|
||||
# cp wheelhouse/numpy*whl /io/wheelhouse/
|
||||
|
||||
# # Install packages and test
|
||||
# for PYBIN in /opt/python/cp27*/bin/; do
|
||||
# "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
|
||||
# done
|
||||
|
||||
# for PYBIN in /opt/python/cp35*/bin/; do
|
||||
# "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
|
||||
# done
|
||||
|
||||
# for PYBIN in /opt/python/cp36*/bin/; do
|
||||
# "${PYBIN}/pip" install spglib --no-index -f /io/wheelhouse
|
||||
# done
|
||||
|
||||
# Install a system package required by our library
|
||||
# yum install -y atlas-devel
|
||||
|
||||
# Compile wheels
|
||||
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/*.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
|
|
@ -0,0 +1,2 @@
|
|||
nose
|
||||
numpy
|
Loading…
Reference in New Issue