summaryrefslogtreecommitdiff
path: root/pkg/postmkvenv.sh
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-08-05 19:03:34 -0700
committerIvan Alejandro <ivanalejandro0@gmail.com>2015-08-07 19:02:24 -0300
commit876fb9c0cf1f9145e478c8ed4bf6dabe7d62b1ff (patch)
tree0e421beab8fc13aab2cc3b3c6b4e3ba766b52dbd /pkg/postmkvenv.sh
parent7f50b9944833715da2d4a58b126722dc3a9a7bc2 (diff)
[pkg] make postmkenv working in osx
we won't be using this for packaging though. it can be useful to avoid installing it, although installing from wheel is quite straightforward in osx.
Diffstat (limited to 'pkg/postmkvenv.sh')
-rwxr-xr-xpkg/postmkvenv.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/postmkvenv.sh b/pkg/postmkvenv.sh
index 015464d3..2407c69b 100755
--- a/pkg/postmkvenv.sh
+++ b/pkg/postmkvenv.sh
@@ -23,6 +23,7 @@ VAR=( $(which -a $PYTHON_VERSION) )
# this takes care of the /usr/lib vs /usr/lib64 differences between platforms
GET_PYTHON_LIB_CMD="from distutils.sysconfig import get_python_lib; print (get_python_lib(plat_specific=True))"
+GET_PYSIDE_LIB_CMD="import PySide; print '/'.join(PySide.__path__[0].split('/')[:-1])"
LIB_VIRTUALENV_PATH=$(python -c "$GET_PYTHON_LIB_CMD")
@@ -34,7 +35,7 @@ elif [[ $platform == 'darwin' ]]; then
PATH=${PATH/:/|}
# remove everything up to | from path
PATH=${PATH/*|/}
- LIB_SYSTEM_PATH=$(python -c "$GET_PYTHON_LIB_CMD")
+ LIB_SYSTEM_PATH=$(/usr/bin/python -c "$GET_PYSIDE_LIB_CMD")
PATH=$ORIGINAL_PATH
else
echo "unsupported platform; not doing symlinks"