From 876fb9c0cf1f9145e478c8ed4bf6dabe7d62b1ff Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 5 Aug 2015 19:03:34 -0700 Subject: [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. --- pkg/postmkvenv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg') 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" -- cgit v1.2.3