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) ...@@ -12,16 +12,20 @@ NAME=$($BIN_DIR/detect $BUILD_DIR)
PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads} PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
VIRTUALENV_DIRS="bin include lib" VIRTUALENV_DIRS="bin include lib"
virtualenv() {
VENV_PATH=$ROOT_DIR/src/virtualenv-1.6.4
PYTHONPATH=$VENV_PATH python $VENV_PATH/scripts/virtualenv "$@"
}
indent() { indent() {
RE="s/^/ /" RE="s/^/ /"
[ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE" [ $(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 cd $BUILD_DIR
# reject a non-packaged Django app # 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