Skip to content

Commit 4e6b822

Browse files
authored
Update configure.sh to check for Python 3.10, not 3.9 (#1001)
Update the version check to be for 3.10, since that is the minimum Python version for TFQ 0.7.6.
1 parent 811c8ba commit 4e6b822

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

configure.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ elif [[ -n "${CONDA_PREFIX:-}" && -x "${CONDA_PREFIX}/bin/python" ]]; then
103103
# 3) Conda environment python, if available
104104
PY="${CONDA_PREFIX}/bin/python"
105105
else
106-
# 4) Fallback: system python3, but require >= 3.9
106+
# 4) Fallback: system python3, but require >= 3.10
107107
if ! command -v python3 >/dev/null 2>&1; then
108-
die "python3 not found. Pass --python=/path/to/python3.9+ or set PYTHON_BIN_PATH."
108+
die "python3 not found. Pass --python=/path/to/python3.10+ or set PYTHON_BIN_PATH."
109109
fi
110110

111111
if ! python3 - <<'PY'
112112
import sys
113-
raise SystemExit(0 if sys.version_info[:2] >= (3, 9) else 1)
113+
raise SystemExit(0 if sys.version_info[:2] >= (3, 10) else 1)
114114
PY
115115
then
116-
die "Python 3.9+ required for TensorFlow Quantum, but found " \
117-
"$(python3 -V 2>&1). Pass --python=/path/to/python3.9+ or set PYTHON_BIN_PATH."
116+
die "Python 3.10+ required for TensorFlow Quantum, but found " \
117+
"$(python3 -V 2>&1). Pass --python=/path/to/python3.10+ or set PYTHON_BIN_PATH."
118118
fi
119119

120120
PY="$(command -v python3)"

0 commit comments

Comments
 (0)