@@ -39,20 +39,36 @@ base_url=http://cache27diy-cpycloud.rhcloud.com
39
39
wheel_box=${TRAVIS_PYTHON_VERSION}${JOB_TAG}
40
40
PIP_ARGS+=" -I --use-wheel --find-links=$base_url /$wheel_box / --allow-external --allow-insecure"
41
41
42
- # Force virtualenv to accept system_site_packages
43
- rm -f $VIRTUAL_ENV /lib/python$TRAVIS_PYTHON_VERSION /no-global-site-packages.txt
44
-
45
-
46
42
if [ -n " $LOCALE_OVERRIDE " ]; then
47
43
# make sure the locale is available
48
44
# probably useless, since you would need to relogin
49
45
time sudo locale-gen " $LOCALE_OVERRIDE "
50
46
fi
51
47
52
-
53
48
# we need these for numpy
54
49
time sudo apt-get $APT_ARGS install libatlas-base-dev gfortran
55
50
51
+ if [ -n " $NUMPY_BUILD " ]; then
52
+ # building numpy
53
+ curdir=$( pwd)
54
+ echo " building numpy: $curdir "
55
+
56
+ # remove the system installed numpy
57
+ pip uninstall numpy -y
58
+
59
+ # clone & install
60
+ git clone --branch master https://github.com/numpy/numpy.git numpy
61
+ cd numpy
62
+ time sudo python setup.py install
63
+
64
+ cd $curdir
65
+ numpy_version=$( python -c ' import numpy; print(numpy.__version__)' )
66
+ echo " numpy: $numpy_version "
67
+ else
68
+ # Force virtualenv to accept system_site_packages
69
+ rm -f $VIRTUAL_ENV /lib/python$TRAVIS_PYTHON_VERSION /no-global-site-packages.txt
70
+ fi
71
+
56
72
time pip install $PIP_ARGS -r ci/requirements-${wheel_box} .txt
57
73
58
74
@@ -98,6 +114,10 @@ export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
98
114
which gcc
99
115
ccache -z
100
116
time pip install $( find dist | grep gz | head -n 1)
101
- # restore cython
102
- time pip install $PIP_ARGS $( cat ci/requirements-${wheel_box} .txt | grep -i cython)
117
+
118
+ # restore cython (if not numpy building)
119
+ if [ -z " $NUMPY_BUILD " ]; then
120
+ time pip install $PIP_ARGS $( cat ci/requirements-${wheel_box} .txt | grep -i cython)
121
+ fi
122
+
103
123
true
0 commit comments