Skip to content

Commit 17e2a9c

Browse files
committed
Fix building of numpy-dev
1 parent 6c9cc09 commit 17e2a9c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.continuous-integration/travis/setup_dependencies_common.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -x
22

33
# CONDA
44
conda create --yes -n test -c astropy-ci-extras python=$PYTHON_VERSION pip
@@ -17,10 +17,14 @@ then
1717
exit # no more dependencies needed
1818
fi
1919

20+
# CORE DEPENDENCIES
21+
$CONDA_INSTALL pytest Cython jinja2 psutil
22+
2023
# NUMPY
2124
if [[ $NUMPY_VERSION == dev ]]
2225
then
23-
pip install git+http://github.com/numpy/numpy.git
26+
pip install git+http://github.com/numpy/numpy.git
27+
exit # exit to make sure we don't end up accidentally install numpy with conda
2428
else
2529
conda install --yes numpy=$NUMPY_VERSION
2630
fi
@@ -29,9 +33,6 @@ fi
2933
# versions are always explicitly specified.
3034
export CONDA_INSTALL="conda install --yes python=$PYTHON_VERSION numpy=$NUMPY_VERSION"
3135

32-
# CORE DEPENDENCIES
33-
$CONDA_INSTALL pytest Cython jinja2 psutil
34-
3536
# OPTIONAL DEPENDENCIES
3637
if $OPTIONAL_DEPS
3738
then

0 commit comments

Comments
 (0)