File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ before_script:
24
24
- ' export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
25
25
- ' export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
26
26
- ' export ARCH=${ARCH:-$(uname -m)}'
27
- - ' export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
27
+ - ' export PACKAGES=${PACKAGES:-pip nose pytest mock wheel}'
28
+ - ' export CPYTHON_ONLY_PKGS="numpy"'
28
29
- export PYTHON_COFIGURE_OPTS="$CONFIGURE_OPTS --enable-unicode=ucs4"
29
30
30
31
script : ./bin/compile
Original file line number Diff line number Diff line change @@ -21,13 +21,33 @@ if [[ $ALIAS ]] ; then
21
21
sudo ln -s $INSTALL_DEST /$VERSION $INSTALL_DEST /$ALIAS
22
22
fi
23
23
24
+ # set up virtualenv arguments
25
+ if [[ $VERSION = pypy-* ]]; then
26
+ PYTHON_BIN=pypy
27
+ VIRTENV_VERSION=$VERSION
28
+ elif [[ $VERSION = pypy3* ]]; then
29
+ PYTHON_BIN=pypy3
30
+ VIRTENV_VERSION=$VERSION
31
+ else
32
+ PYTHON_BIN=python
33
+ VIRTENV_VERSION=python$VERSION
34
+ fi
35
+
24
36
virtualenv --distribute --python=$INSTALL_DEST /$VERSION /bin/python \
25
- $HOME /virtualenv/python $VERSION
37
+ $HOME /virtualenv/$VIRTENV_VERSION
26
38
27
39
if [[ $ALIAS ]] ; then
28
- ln -s $HOME /virtualenv/python $VERSION $HOME /virtualenv/python$ALIAS
40
+ ln -s $HOME /virtualenv/$VIRTENV_VERSION $HOME /virtualenv/python$ALIAS
29
41
fi
30
42
31
43
if [[ $PACKAGES ]] ; then
32
- $HOME /virtualenv/python$VERSION /bin/pip install --upgrade $PACKAGES
44
+ $HOME /virtualenv/$VIRTENV_VERSION /bin/pip install --upgrade $PACKAGES
45
+ fi
46
+
47
+ if [[ $CPYTHON_ONLY_PKGS ]] ; then
48
+ if [[ $VERSION =~ ^pypy ]]; then
49
+ $HOME /virtualenv/$VIRTENV_VERSION /bin/pip install --upgrade $CPYTHON_ONLY_PKGS || true
50
+ else
51
+ $HOME /virtualenv/$VIRTENV_VERSION /bin/pip install --upgrade $CPYTHON_ONLY_PKGS
52
+ fi
33
53
fi
You can’t perform that action at this time.
0 commit comments