Skip to content

Commit f7fd5df

Browse files
committed
Drop PYTHONIOENCODING for Python >= 3.16
1 parent bd0f6ae commit f7fd5df

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎3.16-rc/windows/windowsservercore-ltsc2022/Dockerfile‎

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎3.16-rc/windows/windowsservercore-ltsc2025/Dockerfile‎

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Dockerfile-windows.template‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{
2+
def rcVersion:
3+
env.version | rtrimstr("-rc")
4+
;
25
def extension:
36
.checksums.windows.url | split(".")[-1]
47
;
@@ -9,8 +12,11 @@ FROM mcr.microsoft.com/windows/{{ env.windowsVariant }}:{{ env.windowsRelease }}
912

1013
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
1114

15+
{{ if rcVersion | IN("3.11", "3.12", "3.13", "3.14", "3.15") then ( -}}
16+
{{ # only set PYTHONIOENCODING on versions less than 3.16 -}}
1217
# https://github.com/docker-library/python/pull/557
1318
ENV PYTHONIOENCODING UTF-8
19+
{{ ) else "" end -}}
1420
{{
1521
# installer sets path for older python, but needs to be set for the zip download
1622
if is_windows_zip then (

0 commit comments

Comments
 (0)