Make pip.conf local to Jython virtualenv

master
baztian 2014-02-12 15:24:13 +01:00
parent fbf107ae00
commit 235c0ea7ec
1 changed files with 13 additions and 6 deletions

View File

@ -14,13 +14,20 @@ then
# Travis CI virtualenv version is greater 1.9.1, which was the
# last version compatible with Python version before 2.6
pip install virtualenv==1.9.1
# No SSL support for Jython
mkdir $HOME/.pip
cat > $HOME/.pip/pip.conf <<EOF
[install]
insecure = true
EOF
fi
virtualenv --version
# --distribute is a workaround as setuptools don't install on Jython properly
virtualenv --distribute -p $HOME/jython/bin/jython $HOME/myvirtualenv
if [ "$BEFORE_PY_26" == "True" ]
then
# No SSL support for Jython
cat > $HOME/myvirtualenv/pip.conf <<EOF
[install]
insecure = true
EOF
cat <<EOF >> $HOME/myvirtualenv/bin/activate
export PIP_CONFIG_FILE=$HOME/myvirtualenv/pip.conf
EOF
fi