Fix python version check

This commit is contained in:
Steven Silvester
2014-12-03 21:23:17 -06:00
parent f19dcbbdc3
commit 62a37bda32
+1 -1
View File
@@ -10,7 +10,7 @@ if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
# http://stackoverflow.com/a/9716100
LIBS=( PyQt4 sip.so )
VAR=( $(which -a $TRAVIS_PYTHON_VERSION) )
VAR=( $(which -a python$TRAVIS_PYTHON_VERSION) )
GET_PYTHON_LIB_CMD="from distutils.sysconfig import get_python_lib; print (get_python_lib())"
LIB_VIRTUALENV_PATH=$(python -c "$GET_PYTHON_LIB_CMD")