Skip to content

Commit 89af8a1

Browse files
committed
Update configure.sh to allow Python 3.9
This revises the Python version tests to allow 3.9 as the minimum version, in keeping with what release 0.7.5 supports.
1 parent 9d1d93b commit 89af8a1

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.10
106+
# 4) Fallback: system python3, but require >= 3.9
107107
if ! command -v python3 >/dev/null 2>&1; then
108-
die "python3 not found. Pass --python=/path/to/python3.10+ or set PYTHON_BIN_PATH."
108+
die "python3 not found. Pass --python=/path/to/python3.9+ 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, 10) else 1)
113+
raise SystemExit(0 if sys.version_info[:2] >= (3, 9) else 1)
114114
PY
115115
then
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."
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."
118118
fi
119119

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

0 commit comments

Comments
 (0)