Skip to content

Commit 0450baf

Browse files
committed
Include python_variant suggestion
1 parent 52ac61e commit 0450baf

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

ci/docker/python-wheel-windows-vs2022.dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ FROM ${base}
2525
ARG python=3.10
2626

2727
# Use python_abi_tag env var to select regular or free-threaded Python
28-
ARG freethreaded=0
29-
ENV PYTHON_MODE=${freethreaded}
30-
RUN if "%PYTHON_MODE%"=="1" ( \
31-
pymanager install --version %PYTHON_VERSION% --variant freethreaded \
32-
) else ( \
33-
pymanager install --version %PYTHON_VERSION% \
34-
)
28+
ARG python_variant=default
29+
ENV PYTHON_VARIANT=${python_variant}
30+
RUN pymanager install --version %PYTHON_VERSION% --variant %PYTHON_VARIANT%
3531

3632
RUN %PYTHON_CMD% -m pip install -U pip setuptools
3733

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ services:
13881388
args:
13891389
base: ${REPO}:python-wheel-windows-vs2022-base-vcpkg-${VCPKG}-${PYTHON_WHEEL_WINDOWS_IMAGE_REVISION}
13901390
python: ${PYTHON}
1391-
freethreaded: 0
1391+
python_variant: default
13921392
context: .
13931393
dockerfile: ci/docker/python-wheel-windows-vs2022.dockerfile
13941394
# This should make the pushed images reusable, but the image gets rebuilt.
@@ -1405,7 +1405,7 @@ services:
14051405
args:
14061406
base: ${REPO}:python-wheel-windows-vs2022-base-vcpkg-${VCPKG}-${PYTHON_WHEEL_WINDOWS_IMAGE_REVISION}
14071407
python: ${PYTHON}
1408-
freethreaded: 1
1408+
python_variant: freethreaded
14091409
context: .
14101410
dockerfile: ci/docker/python-wheel-windows-vs2022.dockerfile
14111411
# This should make the pushed images reusable, but the image gets rebuilt.

0 commit comments

Comments
 (0)