jjb: Do not test python2 agents in lttng-tools release builds
authorKienan Stewart <kstewart@efficios.com>
Wed, 6 Sep 2023 19:19:48 +0000 (15:19 -0400)
committerKienan Stewart <kstewart@efficios.com>
Wed, 6 Sep 2023 19:21:01 +0000 (15:21 -0400)
The nodes that run lttng-tools release jobs no longer have python2

Change-Id: If86f0ca782633d1b7ea40ddaff3fce8032676955
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
scripts/lttng-tools/release.sh

index c6e6ce222cb2f4fd55e693fba143bf78ec634db5..430ab4e59259cf763a27c7112737d9b6c441a3d0 100644 (file)
@@ -121,20 +121,17 @@ fi
 export BABELTRACE_PLUGIN_PATH="$DEPS_LIB/babeltrace2/plugins/"
 export LIBBABELTRACE2_PLUGIN_PROVIDER_DIR="$DEPS_LIB/babeltrace2/plugin-providers/"
 
-PYTHON2=python2
 PYTHON3=python3
 
 # Set default python to python3 for the bindings
 export PYTHON="$PYTHON3"
 export PYTHON_CONFIG="/usr/bin/$PYTHON3-config"
 
-P2_VERSION=$($PYTHON2 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 
-UST_PYTHON2="$WORKSPACE/deps/build/lib/python$P2_VERSION/site-packages"
 UST_PYTHON3="$WORKSPACE/deps/build/lib/python$P3_VERSION/site-packages"
 
-export PYTHONPATH="$UST_PYTHON2:$UST_PYTHON3"
+export PYTHONPATH="$UST_PYTHON3"
 
 
 
@@ -155,7 +152,7 @@ cd "$SRCDIR"
 eval "$(grep '^PACKAGE_VERSION=' ./configure)"
 PACKAGE_VERSION=${PACKAGE_VERSION//\-pre*/}
 
-CONF_OPTS=("--enable-python-bindings" "--enable-test-java-agent-all" "--enable-test-python-agent-all")
+CONF_OPTS=("--enable-python-bindings" "--enable-test-java-agent-all" "--enable-test-python3-agent")
 
 TARBALL_FILE="lttng-tools-$PACKAGE_VERSION.tar.bz2"
 
This page took 0.024322 seconds and 4 git commands to generate.