Skip to content

Commit 76055a3

Browse files
committed
BLD: numpy 1.9-dev requires cython for installation
1 parent c6730ea commit 76055a3

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

ci/install.sh

+17-7
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,36 @@ time sudo apt-get $APT_ARGS install libatlas-base-dev gfortran
5454
if [ -n "$NUMPY_BUILD" ]; then
5555
# building numpy
5656
curdir=$(pwd)
57-
echo "building numpy: $curdir"
57+
58+
echo "cloning numpy"
59+
60+
rm -Rf /tmp/numpy
61+
cd /tmp
5862

5963
# remove the system installed numpy
6064
pip uninstall numpy -y
6165

66+
# install cython
67+
pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel Cython
68+
6269
# clone & install
6370
git clone --branch $NUMPY_BUILD https://github.com/numpy/numpy.git numpy
6471
cd numpy
65-
time sudo python setup.py install
72+
wd=${pwd}
73+
time pip install .
74+
pip uninstall cython -y
6675

6776
cd $curdir
77+
echo "building numpy: $wd"
6878
numpy_version=$(python -c 'import numpy; print(numpy.__version__)')
69-
echo "numpy: $numpy_version"
70-
else
71-
# Force virtualenv to accept system_site_packages
72-
rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt
79+
echo "[$curdir] numpy current: $numpy_version"
7380
fi
7481

75-
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.txt
82+
# Force virtualenv to accept system_site_packages
83+
rm -f $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt
84+
7685

86+
time pip install $PIP_ARGS -r ci/requirements-${wheel_box}.txt
7787

7888
# Need to enable for locale testing. The location of the locale file(s) is
7989
# distro specific. For example, on Arch Linux all of the locales are in a

0 commit comments

Comments
 (0)