pitrou commented on code in PR #47616:
URL: https://github.com/apache/arrow/pull/47616#discussion_r2425389652


##########
ci/docker/python-free-threaded-wheel-windows-test-vs2022.dockerfile:
##########
@@ -26,24 +26,34 @@ FROM ${base}
 
 ARG python=3.13
 
+# hadolint ignore=SC1072
+RUN (if "%python%"=="3.13" setx PYTHON_VERSION "3.13.1") & \
+    (if "%python%"=="3.14" setx PYTHON_VERSION "3.14.0")
+
 SHELL ["powershell", "-NoProfile", "-Command", "$ErrorActionPreference = 
'Stop'; $ProgressPreference = 'SilentlyContinue';"]
-RUN $filename = 'python-3.13.1-amd64.exe'; \
-    $url = 'https://www.python.org/ftp/python/3.13.1/' + $filename; \
+RUN $version = $env:PYTHON_VERSION; \
+    $filename = 'python-' + $version + '-amd64.exe'; \
+    $url = 'https://www.python.org/ftp/python/' + $version + '/' + $filename; \
     Invoke-WebRequest -Uri $url -OutFile $filename; \
     Start-Process -FilePath $filename -ArgumentList '/quiet', 
'Include_freethreaded=1' -Wait
 
 ENV PYTHON_CMD="py -${python}t"
 
 SHELL ["cmd", "/S", "/C"]
-RUN %PYTHON_CMD% -m pip install -U pip setuptools
-
-COPY python/requirements-wheel-test-3.13t.txt C:/arrow/python/
-# Cython and Pandas wheels for 3.13 free-threaded are not released yet
+RUN %PYTHON_CMD% -m pip install -U pip setuptools & \
+    if "%python%"=="3.13" ( \
+        setx REQUIREMENTS_FILE "requirements-wheel-test-3.13t.txt" \
+    ) else ( \
+        setx REQUIREMENTS_FILE "requirements-wheel-test.txt" \
+    )
+
+COPY python/requirements-wheel-test-3.13t.txt 
python/requirements-wheel-test.txt C:/arrow/python/

Review Comment:
   Is this line necessary? It's not even using REQUIREMENTS_FILE



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to