jjb: Add support for python3.10 in build scripts
[lttng-ci.git] / scripts / lttng-ust-benchmarks / build.sh
index a2799b9d1abf95a36ec01ece0868ce86457ce884..13e6d639d383d5b7e3b34f7c09737dff05feadf8 100644 (file)
@@ -25,7 +25,7 @@ rm -rf "$WORKSPACE/build"
 mkdir -p "$WORKSPACE/build"
 
 PYTHON3=python3
-P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
+P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 
 # liburcu
 URCU_INCS="$WORKSPACE/deps/liburcu/build/include/"
This page took 0.029452 seconds and 4 git commands to generate.