You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdks/python/container/Dockerfile
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -85,14 +85,20 @@ RUN \
85
85
rm -rf /root/.cache/pip && \
86
86
87
87
# Update ensurepip to use most recent versions of setuptools and pip. This avoids some vulnerabilities which won't be fixed on older versions of python.
88
-
pip install upgrade_ensurepip && \
89
-
python3 -m upgrade_ensurepip && \
90
-
# setuptools is not bundled with ensurepip in Python 3.12+
88
+
# Note: We do not use the third-party 'upgrade_ensurepip' package because:
89
+
# 1) It is incompatible with Python 3.12+ (which no longer bundles setuptools inside ensurepip, causing an AssertionError).
90
+
# 2) It queries public PyPI via raw HTTP calls, failing in sandboxed build environments with custom package mirrors.
91
+
# Instead, we download the wheels via pip and patch ensurepip's version mapping manually.
0 commit comments