File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,25 @@ if [[ $ALIAS ]] ; then
21
21
sudo ln -s $INSTALL_DEST /$VERSION $INSTALL_DEST /$ALIAS
22
22
fi
23
23
24
+ if [[ $VERSION = pypy-* ]]; then
25
+ PYTHON_BIN=pypy
26
+ elif [[ $VERSION = pypy3* ]]; then
27
+ PYTHON_BIN=pypy3
28
+ else
29
+ PYTHON_BIN=python
30
+ fi
31
+
32
+ if [[ $VERSION != pypy* ]]; then
33
+ VIRTENV_VERSION=python$VERSION
34
+ fi
35
+
24
36
virtualenv --distribute --python=$INSTALL_DEST /$VERSION /bin/python \
25
- /home/travis/virtualenv/python $VERSION
37
+ /home/travis/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
33
45
fi
You can’t perform that action at this time.
0 commit comments