Commit c9276ca6 authored by Noah Zoschke's avatar Noah Zoschke

put vendored virtualenv at beginning of sys.path

parent 3de886d4
......@@ -12,16 +12,20 @@ NAME=$($BIN_DIR/detect $BUILD_DIR)
PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
VIRTUALENV_DIRS="bin include lib"
virtualenv() {
VENV_PATH=$ROOT_DIR/src/virtualenv-1.6.4
PYTHONPATH=$VENV_PATH python $VENV_PATH/scripts/virtualenv "$@"
}
indent() {
RE="s/^/ /"
[ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
}
virtualenv() {
python - "$@" <<EOF
import sys
sys.path.insert(0, "$ROOT_DIR/src/virtualenv-1.6.4")
import virtualenv
virtualenv.main()
EOF
}
cd $BUILD_DIR
# reject a non-packaged Django app
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment