Skip to content

Commit 05e1c79

Browse files
committed
Include python_variant suggestion
1 parent 3c504dc commit 05e1c79

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
@@ -1408,7 +1408,7 @@ services:
14081408
args:
14091409
base: ${REPO}:python-wheel-windows-vs2022-base-vcpkg-${VCPKG}-${PYTHON_WHEEL_WINDOWS_IMAGE_REVISION}
14101410
python: ${PYTHON}
1411-
freethreaded: 0
1411+
python_variant: default
14121412
context: .
14131413
dockerfile: ci/docker/python-wheel-windows-vs2022.dockerfile
14141414
# This should make the pushed images reusable, but the image gets rebuilt.
@@ -1425,7 +1425,7 @@ services:
14251425
args:
14261426
base: ${REPO}:python-wheel-windows-vs2022-base-vcpkg-${VCPKG}-${PYTHON_WHEEL_WINDOWS_IMAGE_REVISION}
14271427
python: ${PYTHON}
1428-
freethreaded: 1
1428+
python_variant: freethreaded
14291429
context: .
14301430
dockerfile: ci/docker/python-wheel-windows-vs2022.dockerfile
14311431
# This should make the pushed images reusable, but the image gets rebuilt.

0 commit comments

Comments
 (0)