File tree 1 file changed +17
-7
lines changed
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
54
54
if [ -n " $NUMPY_BUILD " ]; then
55
55
# building numpy
56
56
curdir=$( pwd)
57
- echo " building numpy: $curdir "
57
+
58
+ echo " cloning numpy"
59
+
60
+ rm -Rf /tmp/numpy
61
+ cd /tmp
58
62
59
63
# remove the system installed numpy
60
64
pip uninstall numpy -y
61
65
66
+ # install cython
67
+ pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel Cython
68
+
62
69
# clone & install
63
70
git clone --branch $NUMPY_BUILD https://github.com/numpy/numpy.git numpy
64
71
cd numpy
65
- time sudo python setup.py install
72
+ wd=${pwd}
73
+ time pip install .
74
+ pip uninstall cython -y
66
75
67
76
cd $curdir
77
+ echo " building numpy: $wd "
68
78
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 "
73
80
fi
74
81
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
+
76
85
86
+ time pip install $PIP_ARGS -r ci/requirements-${wheel_box} .txt
77
87
78
88
# Need to enable for locale testing. The location of the locale file(s) is
79
89
# 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