PycURL: try to fix the definition of pythonVersion for the buildbots.

For some unknown reason the previous definition was not working on
the build servers, although it was on my system.
This commit is contained in:
fbrosson
2018-10-21 15:52:53 +00:00
parent c5107d9a1a
commit 6f0b266ea9

View File

@@ -64,8 +64,8 @@ fi
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonLibSuffix=${PYTHON_LIBSUFFIXES[$i]}
pythonVersion="`$pythonPackage --version 2>&1 | sed -n \
-e "s/Python \([0-9]*\.[0-9]*\)\..*/\1/p"`"
pythonVersion=`eval "$pythonPackage --version 2>&1" | sed -n \
-e "1s/Python \([0-9]*\.[0-9]*\)\..*/\1/p"`
PYTHON_VERSIONS+=($pythonVersion)
eval "PROVIDES_${pythonPackage}=\"