Fix 3.14 nightly build, wheel verification failure on Windows CI.

PiperOrigin-RevId: 953740461
This commit is contained in:
A. Unique TensorFlower
2026-07-24 23:22:10 -07:00
committed by TensorFlower Gardener
parent 76d880daba
commit 72731de3d7
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ RUN function Install-Python { \
@{ version = '3.10.11'; prependPath = 0 }, \
@{ version = '3.11.9'; prependPath = 0 }, \
@{ version = '3.12.8'; prependPath = 0 }, \
@{ version = '3.13.1'; prependPath = 0 } \
@{ version = '3.13.1'; prependPath = 0 }, \
@{ version = '3.14.3'; prependPath = 1 } \
); \
foreach ($v in $versions) { \
@@ -125,7 +125,15 @@ else
# When using the Linux-like path, venv creation quietly fails, which is
# why it's converted here.
venv_dir=$(cygpath -m $venv_dir)
"/c/python${TFCI_PYTHON_VERSION}/python.exe" -m venv "$venv_dir"
py_exe="/c/python${TFCI_PYTHON_VERSION}/python.exe"
if [[ ! -f "$py_exe" ]]; then
py_exe=$(which "python${TFCI_PYTHON_VERSION}" 2>/dev/null || which "python${TFCI_PYTHON_VERSION}.exe" 2>/dev/null)
fi
if [[ -z "$py_exe" ]]; then
echo "Error: Could not find python${TFCI_PYTHON_VERSION} executable."
exit 1
fi
"$py_exe" -m venv "$venv_dir"
python="$venv_dir/Scripts/python.exe"
fi