We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bea12d commit d605a8dCopy full SHA for d605a8d
oss_scripts/configure.sh
@@ -61,7 +61,13 @@ elif (which python) | grep -q "python"; then
61
installed_python="python"
62
fi
63
64
-HERMETIC_PYTHON_VERSION=$($installed_python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
+if [ -z "$HERMETIC_PYTHON_VERSION" ]; then
65
+ if [ -n "$PY_VERSION" ]; then
66
+ HERMETIC_PYTHON_VERSION=$PY_VERSION
67
+ else
68
+ HERMETIC_PYTHON_VERSION=$($installed_python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
69
+ fi
70
+fi
71
export HERMETIC_PYTHON_VERSION
72
73
echo "TF_VERSION=$TF_VERSION"
0 commit comments