8000 Merge pull request #1040 from infosiftr/short-hack · mmoll/python@a74a6c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a74a6c7

Browse files
authored
Merge pull request docker-library#1040 from infosiftr/short-hack
Add a quick fix for 3.14.0b1 on windows
2 parents 4cf0116 + 0fb50d3 commit a74
10000
a6c7

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

3.14-rc/windows/windowsservercore-1809/Dockerfile

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

3.14-rc/windows/windowsservercore-ltsc2022/Dockerfile

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

3.14-rc/windows/windowsservercore-ltsc2025/Dockerfile

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

Dockerfile-windows.template

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($en
5555
\
5656
$env:PYTHONDONTWRITEBYTECODE = '1'; \
5757
\
58+
{{ if .version == "3.14.0b1" then ( -}}
59+
Write-Host 'Reinstalling pip to workaround a bug ...'; \
60+
# https://github.com/python/cpython/issues/133626
61+
# clean up broken pip install
62+
Remove-Item -Recurse C:\Python\Lib\site-packages\pip*; \
63+
# install pip as pip.exe
64+
python -m ensurepip --default-pip -vvv; \
65+
\
66+
{{ ) else "" end -}}
5867
Write-Host 'Verifying pip install ...'; \
5968
pip --version; \
6069
\

0 commit comments

Comments
 (0)
0