diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-09-02 19:29:42 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-09-02 19:29:42 -0300 |
commit | 1d0c1c4701c0fd2c18bbbb6910de44bd0a5f4bba (patch) | |
tree | d8b73790d7cb20b5bfeb39ff5e072fdad3648cad /pkg/postmkvenv.sh | |
parent | d24fedb34caefd96ac68a98dbe42e36e9ca6c7c9 (diff) |
Temporarily removing venv from path, to get system lib folder
Diffstat (limited to 'pkg/postmkvenv.sh')
-rwxr-xr-x | pkg/postmkvenv.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/postmkvenv.sh b/pkg/postmkvenv.sh index 9c6debe8..7b06fa6d 100755 --- a/pkg/postmkvenv.sh +++ b/pkg/postmkvenv.sh @@ -27,7 +27,13 @@ LIB_VIRTUALENV_PATH=$(python -c "$GET_PYTHON_LIB_CMD") if [[ $platform == 'linux' ]]; then LIB_SYSTEM_PATH=$(${VAR[-1]} -c "$GET_PYTHON_LIB_CMD") elif [[ $platform == 'darwin' ]]; then + ORIGINAL_PATH=$PATH + #change first colon of path to | because path substitution is greedy + PATH=${PATH/:/|} + #remove everything up to | from path + PATH=${PATH/*|/} LIB_SYSTEM_PATH=$(python -c "$GET_PYTHON_LIB_CMD") + PATH=$ORIGINAL_PATH else echo "unsupported platform; not doing symlinks" fi |