Skip to content

Conversation

@tianon
Copy link
Member

@tianon tianon commented May 7, 2025

Changes:

@tianon tianon requested review from a team and LaurentGoderre as code owners May 7, 2025 17:50
@github-actions

This comment has been minimized.

@yosifkit
Copy link
Member

yosifkit commented May 7, 2025

Build test failure:

pip : The term 'pip' is not recognized as the name of a cmdlet, function, 
script file, or operable program. Check the spelling of the name, or if a path 
was included, verify that the path is correct and try again.

The installer we offer for Windows is being replaced by our new install manager, which can be installed from the Windows Store or our FTP page. [...] The traditional installer will remain available throughout the 3.14 and 3.15 releases.

- https://www.python.org/downloads/release/python-3140b1/

Unlike the current Windows Store install, no global pip command is included (the traditional installer also does not include a global pip command, unless the options to modify PATH and to install pip are selected; the first of these is off by default).

- https://peps.python.org/pep-0773/#global-pip-command

So, the newer "install manager" will no longer have a pip command, but the "traditional installer" should still work because we are setting PrependPath=1 and Include_pip=1. 😕 😢

See also python/cpython#133626

Changes:

- docker-library/python@a74a6c7e: Merge pull request docker-library/python#1040 from infosiftr/short-hack
- docker-library/python@0fb50d34: Add a quick fix for 3.14.0b1 on windows
- docker-library/python@4cf0116a: Update 3.14-rc to 3.14.0b1
@github-actions
Copy link

github-actions bot commented May 8, 2025

Diff for 7aca2dc:
diff --git a/_bashbrew-cat b/_bashbrew-cat
index d841ded..0467cef 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -205,57 +205,57 @@ Directory: 3.13/windows/windowsservercore-ltsc2025
 Builder: classic
 Constraints: windowsservercore-ltsc2025
 
-Tags: 3.14.0a7-alpine3.20, 3.14-rc-alpine3.20
+Tags: 3.14.0b1-alpine3.20, 3.14-rc-alpine3.20
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/alpine3.20
 
-Tags: 3.14.0a7-alpine3.21, 3.14-rc-alpine3.21, 3.14.0a7-alpine, 3.14-rc-alpine
+Tags: 3.14.0b1-alpine3.21, 3.14-rc-alpine3.21, 3.14.0b1-alpine, 3.14-rc-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/alpine3.21
 
-Tags: 3.14.0a7-bookworm, 3.14-rc-bookworm
-SharedTags: 3.14.0a7, 3.14-rc
+Tags: 3.14.0b1-bookworm, 3.14-rc-bookworm
+SharedTags: 3.14.0b1, 3.14-rc
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/bookworm
 
-Tags: 3.14.0a7-bullseye, 3.14-rc-bullseye
+Tags: 3.14.0b1-bullseye, 3.14-rc-bullseye
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/bullseye
 
-Tags: 3.14.0a7-slim-bookworm, 3.14-rc-slim-bookworm, 3.14.0a7-slim, 3.14-rc-slim
+Tags: 3.14.0b1-slim-bookworm, 3.14-rc-slim-bookworm, 3.14.0b1-slim, 3.14-rc-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/slim-bookworm
 
-Tags: 3.14.0a7-slim-bullseye, 3.14-rc-slim-bullseye
+Tags: 3.14.0b1-slim-bullseye, 3.14-rc-slim-bullseye
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 4cf0116a7bbe300e199a0565ebf6656af61352c6
 Directory: 3.14-rc/slim-bullseye
 
-Tags: 3.14.0a7-windowsservercore-1809, 3.14-rc-windowsservercore-1809
-SharedTags: 3.14.0a7-windowsservercore, 3.14-rc-windowsservercore, 3.14.0a7, 3.14-rc
+Tags: 3.14.0b1-windowsservercore-1809, 3.14-rc-windowsservercore-1809
+SharedTags: 3.14.0b1-windowsservercore, 3.14-rc-windowsservercore, 3.14.0b1, 3.14-rc
 Architectures: windows-amd64
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 0fb50d347fe0df6a92b492ed52d012cb4d502627
 Directory: 3.14-rc/windows/windowsservercore-1809
 Builder: classic
 Constraints: windowsservercore-1809
 
-Tags: 3.14.0a7-windowsservercore-ltsc2022, 3.14-rc-windowsservercore-ltsc2022
-SharedTags: 3.14.0a7-windowsservercore, 3.14-rc-windowsservercore, 3.14.0a7, 3.14-rc
+Tags: 3.14.0b1-windowsservercore-ltsc2022, 3.14-rc-windowsservercore-ltsc2022
+SharedTags: 3.14.0b1-windowsservercore, 3.14-rc-windowsservercore, 3.14.0b1, 3.14-rc
 Architectures: windows-amd64
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 0fb50d347fe0df6a92b492ed52d012cb4d502627
 Directory: 3.14-rc/windows/windowsservercore-ltsc2022
 Builder: classic
 Constraints: windowsservercore-ltsc2022
 
-Tags: 3.14.0a7-windowsservercore-ltsc2025, 3.14-rc-windowsservercore-ltsc2025
-SharedTags: 3.14.0a7-windowsservercore, 3.14-rc-windowsservercore, 3.14.0a7, 3.14-rc
+Tags: 3.14.0b1-windowsservercore-ltsc2025, 3.14-rc-windowsservercore-ltsc2025
+SharedTags: 3.14.0b1-windowsservercore, 3.14-rc-windowsservercore, 3.14.0b1, 3.14-rc
 Architectures: windows-amd64
-GitCommit: 70fc099be48e4a130afd949a4dd3c6afe6935b8a
+GitCommit: 0fb50d347fe0df6a92b492ed52d012cb4d502627
 Directory: 3.14-rc/windows/windowsservercore-ltsc2025
 Builder: classic
 Constraints: windowsservercore-ltsc2025
diff --git a/_bashbrew-list b/_bashbrew-list
index 77d504b..69bf93e 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -130,19 +130,19 @@ python:3.14-rc-windowsservercore
 python:3.14-rc-windowsservercore-1809
 python:3.14-rc-windowsservercore-ltsc2022
 python:3.14-rc-windowsservercore-ltsc2025
-python:3.14.0a7
-python:3.14.0a7-alpine
-python:3.14.0a7-alpine3.20
-python:3.14.0a7-alpine3.21
-python:3.14.0a7-bookworm
-python:3.14.0a7-bullseye
-python:3.14.0a7-slim
-python:3.14.0a7-slim-bookworm
-python:3.14.0a7-slim-bullseye
-python:3.14.0a7-windowsservercore
-python:3.14.0a7-windowsservercore-1809
-python:3.14.0a7-windowsservercore-ltsc2022
-python:3.14.0a7-windowsservercore-ltsc2025
+python:3.14.0b1
+python:3.14.0b1-alpine
+python:3.14.0b1-alpine3.20
+python:3.14.0b1-alpine3.21
+python:3.14.0b1-bookworm
+python:3.14.0b1-bullseye
+python:3.14.0b1-slim
+python:3.14.0b1-slim-bookworm
+python:3.14.0b1-slim-bullseye
+python:3.14.0b1-windowsservercore
+python:3.14.0b1-windowsservercore-1809
+python:3.14.0b1-windowsservercore-ltsc2022
+python:3.14.0b1-windowsservercore-ltsc2025
 python:alpine
 python:alpine3.20
 python:alpine3.21
diff --git a/python_3.14-rc-alpine/Dockerfile b/python_3.14-rc-alpine/Dockerfile
index 667014e..a84256a 100644
--- a/python_3.14-rc-alpine/Dockerfile
+++ b/python_3.14-rc-alpine/Dockerfile
@@ -16,8 +16,8 @@ RUN set -eux; \
 		tzdata \
 	;
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-alpine3.20/Dockerfile b/python_3.14-rc-alpine3.20/Dockerfile
index c90a9b7..a6bbb3c 100644
--- a/python_3.14-rc-alpine3.20/Dockerfile
+++ b/python_3.14-rc-alpine3.20/Dockerfile
@@ -16,8 +16,8 @@ RUN set -eux; \
 		tzdata \
 	;
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-bookworm/Dockerfile b/python_3.14-rc-bookworm/Dockerfile
index 422f485..3770ba0 100644
--- a/python_3.14-rc-bookworm/Dockerfile
+++ b/python_3.14-rc-bookworm/Dockerfile
@@ -19,8 +19,8 @@ RUN set -eux; \
 	; \
 	rm -rf /var/lib/apt/lists/*
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-bullseye/Dockerfile b/python_3.14-rc-bullseye/Dockerfile
index fa88cc2..28cb40b 100644
--- a/python_3.14-rc-bullseye/Dockerfile
+++ b/python_3.14-rc-bullseye/Dockerfile
@@ -19,8 +19,8 @@ RUN set -eux; \
 	; \
 	rm -rf /var/lib/apt/lists/*
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-slim-bullseye/Dockerfile b/python_3.14-rc-slim-bullseye/Dockerfile
index 1663624..0803096 100644
--- a/python_3.14-rc-slim-bullseye/Dockerfile
+++ b/python_3.14-rc-slim-bullseye/Dockerfile
@@ -19,8 +19,8 @@ RUN set -eux; \
 	; \
 	rm -rf /var/lib/apt/lists/*
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-slim/Dockerfile b/python_3.14-rc-slim/Dockerfile
index ce1fc8f..deae80d 100644
--- a/python_3.14-rc-slim/Dockerfile
+++ b/python_3.14-rc-slim/Dockerfile
@@ -19,8 +19,8 @@ RUN set -eux; \
 	; \
 	rm -rf /var/lib/apt/lists/*
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 71adbcec3ac9edf93308e55cfb4184f2eb4b16fda2bb0a5a382929ed29c8386d
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 2ddd30a77c9f62e065ce648664a254b9b0c011bcdaa8c1c2787087e644cbeb39
 
 RUN set -eux; \
 	\
diff --git a/python_3.14-rc-windowsservercore-1809/Dockerfile b/python_3.14-rc-windowsservercore-1809/Dockerfile
index 74bba95..61a8ce5 100644
--- a/python_3.14-rc-windowsservercore-1809/Dockerfile
+++ b/python_3.14-rc-windowsservercore-1809/Dockerfile
@@ -11,8 +11,8 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
 # https://github.com/docker-library/python/pull/557
 ENV PYTHONIOENCODING UTF-8
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 944e24cde04e4067ae728578afc8fbc78d9a0d735e9c9348720c857d61bd8e1e
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 a878026c12b1a606d02f5bbf3ed65aa780ee8272964b8f95d8348ffa2d6ca096
 
 RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($env:PYTHON_VERSION -replace '[a-z]+[0-9]*$', ''), $env:PYTHON_VERSION); \
 	Write-Host ('Downloading {0} ...' -f $url); \
@@ -57,6 +57,13 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($en
 	\
 	$env:PYTHONDONTWRITEBYTECODE = '1'; \
 	\
+	Write-Host 'Reinstalling pip to workaround a bug ...'; \
+	# https://github.com/python/cpython/issues/133626
+	# clean up broken pip install
+	Remove-Item -Recurse C:\Python\Lib\site-packages\pip*; \
+	# install pip as pip.exe
+	python -m ensurepip --default-pip -vvv; \
+	\
 	Write-Host 'Verifying pip install ...'; \
 	pip --version; \
 	\
diff --git a/python_3.14-rc-windowsservercore-ltsc2022/Dockerfile b/python_3.14-rc-windowsservercore-ltsc2022/Dockerfile
index c328112..75ffda7 100644
--- a/python_3.14-rc-windowsservercore-ltsc2022/Dockerfile
+++ b/python_3.14-rc-windowsservercore-ltsc2022/Dockerfile
@@ -11,8 +11,8 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
 # https://github.com/docker-library/python/pull/557
 ENV PYTHONIOENCODING UTF-8
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 944e24cde04e4067ae728578afc8fbc78d9a0d735e9c9348720c857d61bd8e1e
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 a878026c12b1a606d02f5bbf3ed65aa780ee8272964b8f95d8348ffa2d6ca096
 
 RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($env:PYTHON_VERSION -replace '[a-z]+[0-9]*$', ''), $env:PYTHON_VERSION); \
 	Write-Host ('Downloading {0} ...' -f $url); \
@@ -57,6 +57,13 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($en
 	\
 	$env:PYTHONDONTWRITEBYTECODE = '1'; \
 	\
+	Write-Host 'Reinstalling pip to workaround a bug ...'; \
+	# https://github.com/python/cpython/issues/133626
+	# clean up broken pip install
+	Remove-Item -Recurse C:\Python\Lib\site-packages\pip*; \
+	# install pip as pip.exe
+	python -m ensurepip --default-pip -vvv; \
+	\
 	Write-Host 'Verifying pip install ...'; \
 	pip --version; \
 	\
diff --git a/python_3.14-rc-windowsservercore-ltsc2025/Dockerfile b/python_3.14-rc-windowsservercore-ltsc2025/Dockerfile
index 8845be9..ffc2b34 100644
--- a/python_3.14-rc-windowsservercore-ltsc2025/Dockerfile
+++ b/python_3.14-rc-windowsservercore-ltsc2025/Dockerfile
@@ -11,8 +11,8 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
 # https://github.com/docker-library/python/pull/557
 ENV PYTHONIOENCODING UTF-8
 
-ENV PYTHON_VERSION 3.14.0a7
-ENV PYTHON_SHA256 944e24cde04e4067ae728578afc8fbc78d9a0d735e9c9348720c857d61bd8e1e
+ENV PYTHON_VERSION 3.14.0b1
+ENV PYTHON_SHA256 a878026c12b1a606d02f5bbf3ed65aa780ee8272964b8f95d8348ffa2d6ca096
 
 RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($env:PYTHON_VERSION -replace '[a-z]+[0-9]*$', ''), $env:PYTHON_VERSION); \
 	Write-Host ('Downloading {0} ...' -f $url); \
@@ -57,6 +57,13 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f ($en
 	\
 	$env:PYTHONDONTWRITEBYTECODE = '1'; \
 	\
+	Write-Host 'Reinstalling pip to workaround a bug ...'; \
+	# https://github.com/python/cpython/issues/133626
+	# clean up broken pip install
+	Remove-Item -Recurse C:\Python\Lib\site-packages\pip*; \
+	# install pip as pip.exe
+	python -m ensurepip --default-pip -vvv; \
+	\
 	Write-Host 'Verifying pip install ...'; \
 	pip --version; \
 	\

Relevant Maintainers:

@yosifkit yosifkit merged commit aee156e into docker-library:master May 8, 2025
50 checks passed
@yosifkit yosifkit deleted the python branch May 8, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants