Skip to content

Commit 9800bf5

Browse files
authored
Merge pull request #17 from travis-ci/pypy-numpy
Install numpy when building PyPy*
2 parents 26547ad + d1bea1a commit 9800bf5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

bin/compile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ if [[ ! $VERSION ]] ; then
1212
exit 1
1313
fi
1414

15+
function install_numpy() {
16+
if [[ $VERSION == pypy* ]]; then
17+
$HOME/virtualenv/$VIRTENV_VERSION/bin/pip -m pip install git+https://bitbucket.org/pypy/numpy.git
18+
else
19+
$HOME/virtualenv/$VIRTENV_VERSION/bin/pip install --upgrade $CPYTHON_ONLY_PKGS
20+
fi
21+
}
22+
1523
set -o xtrace
1624

1725
sudo env PYTHON_BUILD_ROOT=/opt/pyenv/plugins/python-build \
@@ -46,10 +54,5 @@ if [[ $PACKAGES ]] ; then
4654
$HOME/virtualenv/$VIRTENV_VERSION/bin/pip install --upgrade $PACKAGES
4755
fi
4856

49-
if [[ $CPYTHON_ONLY_PKGS ]] ; then
50-
if [[ $VERSION =~ ^pypy ]]; then
51-
$HOME/virtualenv/$VIRTENV_VERSION/bin/pip install --upgrade $CPYTHON_ONLY_PKGS || true
52-
else
53-
$HOME/virtualenv/$VIRTENV_VERSION/bin/pip install --upgrade $CPYTHON_ONLY_PKGS
54-
fi
55-
fi
57+
install_numpy
58+

0 commit comments

Comments
 (0)