-
Notifications
You must be signed in to change notification settings - Fork 4.6k
pin pip>=26.1 #38852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
pin pip>=26.1 #38852
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ RUN \ | |
| && \ | ||
| rm -rf /var/lib/apt/lists/* && \ | ||
|
|
||
| pip install --upgrade pip setuptools wheel && \ | ||
| pip install --upgrade "pip>=26.1" setuptools wheel && \ | ||
|
|
||
| # Install required packages for Beam Python SDK and common dependencies used by users. | ||
| # use --no-deps to ensure the list includes all transitive dependencies. | ||
|
|
@@ -101,7 +101,8 @@ RUN \ | |
| if [ "${py_version}" = "3.10" ] || [ "${py_version}" = "3.11" ]; then \ | ||
| pip uninstall upgrade_ensurepip -y; \ | ||
| fi; \ | ||
| python3 -m ensurepip; | ||
| python3 -m ensurepip && \ | ||
| python3 -c "import ensurepip; assert list(map(int, ensurepip._PIP_VERSION.split('.'))) >= [26, 1], f'Bundled pip version {ensurepip._PIP_VERSION} is older than 26.1';" | ||
|
Comment on lines
+104
to
+105
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using To verify the actual installed version of |
||
|
|
||
| ENTRYPOINT ["/opt/apache/beam/boot"] | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install --upgrade pipshould install the latest version. are we seeing different behavior here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw some container images still using 25.0.1. Is there a better way to do this? Thanks.