From 96cf4d4ddc3973e48dead868d5330d042643ba22 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 9 Jun 2016 15:49:54 -0400 Subject: [PATCH] jjb: fix babeltrace pylint script --- scripts/babeltrace/pylint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.34.1