From: Michael Jeanson Date: Thu, 9 Jun 2016 19:49:54 +0000 (-0400) Subject: jjb: fix babeltrace pylint script X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=96cf4d4ddc3973e48dead868d5330d042643ba22;p=lttng-ci.git jjb: fix babeltrace pylint script --- diff --git a/scripts/babeltrace/pylint.sh b/scripts/babeltrace/pylint.sh index 4a7e38a..80637f6 100755 --- a/scripts/babeltrace/pylint.sh +++ b/scripts/babeltrace/pylint.sh @@ -16,7 +16,11 @@ # along with this program. If not, see . BABELTRACE_DIR="deps/babeltrace/build" -BINDINGS_DIR="$BABELTRACE_DIR/lib/python3.4/dist-packages/babeltrace" + +PYTHON3=python3 +P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") + +BINDINGS_DIR="$BABELTRACE_DIR/lib/python${P3_VERSION}/dist-packages/babeltrace" PYENV_HOME="$WORKSPACE/.pyenv/" @@ -26,7 +30,7 @@ if [ -d $PYENV_HOME ]; then fi # Create virtualenv and install necessary packages -virtualenv --system-site-packages -p python3 $PYENV_HOME +virtualenv --system-site-packages -p ${PYTHON3} $PYENV_HOME set +u . $PYENV_HOME/bin/activate