File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -54,26 +54,36 @@ time sudo apt-get $APT_ARGS install libatlas-base-dev gfortran
5454if [ -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 "
7380fi
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
You can’t perform that action at this time.
0 commit comments