Skip to content

Commit

Permalink
fix 'misc/python.profile' to use '$VS_HOME' instead of '$VS_PATH'
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed Feb 18, 2012
1 parent 55dc71b commit 9b4cb49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/python.profile
Expand Up @@ -64,7 +64,7 @@ pyver=`python -c 'import sys;print("%s.%s"%sys.version_info[:2])'`
## create 'local/bin' and add it to $PATH ## create 'local/bin' and add it to $PATH
[ -d "local/bin" ] || mkdir -p "local/bin" [ -d "local/bin" ] || mkdir -p "local/bin"
_append_to_path '$PWD/local/bin' _append_to_path '$PWD/local/bin'
if [ -n "$VS_PATH" ]; then if [ -n "$VS_HOME" ]; then
[ -d "local/bin/python$pyver" ] || mkdir -p "local/bin/python$pyver" [ -d "local/bin/python$pyver" ] || mkdir -p "local/bin/python$pyver"
_append_to_path '$PWD/local/bin/python'$pyver _append_to_path '$PWD/local/bin/python'$pyver
fi fi
Expand Down Expand Up @@ -96,7 +96,7 @@ fi
unset sitedir unset sitedir


## enforce 'easy_install' and 'pip' to install packages into 'local' ## enforce 'easy_install' and 'pip' to install packages into 'local'
if [ -z "$VS_PATH" ]; then if [ -z "$VS_HOME" ]; then
echo 'alias easy_install="\\easy_install --prefix=$PWD/local"' echo 'alias easy_install="\\easy_install --prefix=$PWD/local"'
alias easy_install="\\easy_install --prefix=$PWD/local --script-dir=$PWD/local/bin/python$pyver" alias easy_install="\\easy_install --prefix=$PWD/local --script-dir=$PWD/local/bin/python$pyver"
echo 'export PIP_INSTALL_OPTION="--prefix=$PWD/local"' echo 'export PIP_INSTALL_OPTION="--prefix=$PWD/local"'
Expand Down

0 comments on commit 9b4cb49

Please sign in to comment.