mirror of
https://github.com/tensorflow/tensorflow.git
synced 2026-09-28 05:13:36 +08:00
Fix 3.14 nightly build, wheel verification failure on Windows CI.
PiperOrigin-RevId: 953740461
This commit is contained in:
committed by
TensorFlower Gardener
parent
76d880daba
commit
72731de3d7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user