Initial commit, with 'host' server example.
Even that isn't quite complete, but I'm anxious to test other things..
This commit is contained in:
commit
cf06a1987d
17 changed files with 571 additions and 0 deletions
17
servers/host/deploy/python/premkvirtualenv
Executable file
17
servers/host/deploy/python/premkvirtualenv
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue