rattail-fabdemo/servers/host/deploy/python/premkvirtualenv

18 lines
353 B
Plaintext
Raw Normal View History

#!/bin/bash
# This hook is run after a new virtualenv is created and before it is activated.
cat >$1/pip.conf <<EOF
[global]
allow-external = PIL
allow-unverified = PIL
log-file = $WORKON_HOME/$1/pip.log
EOF
cat >$1/bin/postactivate <<EOF
export PIP_CONFIG_FILE=$WORKON_HOME/$1/pip.conf
EOF
cat >$1/bin/postdeactivate <<EOF
unset PIP_CONFIG_FILE
EOF