René's URL Explorer Experiment


Title: Stop including setuptools and wheel in Python 3.12+ images · Issue #952 · docker-library/python · GitHub

Open Graph Title: Stop including setuptools and wheel in Python 3.12+ images · Issue #952 · docker-library/python

X Title: Stop including setuptools and wheel in Python 3.12+ images · Issue #952 · docker-library/python

Description: In Python 3.12, the stdlib's ensurepip and venv modules were updated to no longer install setuptools alongside pip. This was viable since as of pip v22.1, for pre-PEP-517/518 packages pip will now default to the isolated build environmen...

Open Graph Description: In Python 3.12, the stdlib's ensurepip and venv modules were updated to no longer install setuptools alongside pip. This was viable since as of pip v22.1, for pre-PEP-517/518 packages pip will now ...

X Description: In Python 3.12, the stdlib's ensurepip and venv modules were updated to no longer install setuptools alongside pip. This was viable since as of pip v22.1, for pre-PEP-517/518 packages pip will ...

Opengraph URL: https://github.com/docker-library/python/issues/952

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stop including setuptools and wheel in Python 3.12+ images","articleBody":"In Python 3.12, the stdlib's `ensurepip` and `venv` modules were updated to no longer install `setuptools` alongside pip. This was viable since as of pip v22.1, for pre-PEP-517/518 packages [pip will now](https://github.com/pypa/pip/pull/10717) default to the isolated build environment mode (along with a fallback legacy setuptools build backend, with setuptools and wheel automatically installed), if the setuptools package isn't installed globally.\r\n\r\nSee:\r\nhttps://github.com/python/cpython/issues/95299\r\nhttps://github.com/python/cpython/commit/ece20dba120a1a4745721c49f8d7389d4b1ee2a7\r\n\r\nAs such, when this repo added support for Python 3.12, the explicit setuptools requirement was removed, as part of:\r\nhttps://github.com/docker-library/python/pull/833\r\n\r\nHowever, that change didn't actually remove setuptools from the Python 3.12+ images, since get-pip [implicitly installs setuptools and wheel](https://github.com/pypa/get-pip/blob/ac9253767f0be4cdef620a3ca07187a8cabc66a5/templates/default.py#L46-L78) if they are not already installed. Instead, the result was only that the setuptools version is now unconstrained and get-pip will pull in whatever is the latest version of setuptools at the time of the image being built.\r\n\r\neg:\r\n\r\n```\r\n$ docker run -q --rm python:3.12 pip list\r\nPackage    Version\r\n---------- -------\r\npip        24.2\r\nsetuptools 72.2.0\r\nwheel      0.44.0\r\n```\r\n\r\nThis means that the Python 3.12 (and 3.13-rc) images here:\r\n(a) are less aligned with the experience one gets when using `ensurepip` or `venv` from the stdlib (which no longer install setuptools),\r\n(b) now have a floating setuptools version when they didn't before (which doesn't seem ideal from a determinism point of view, particularly given intentional breaking changes in recent setuptools major releases as part of an ongoing tech-debt clean-up effort).\r\n\r\nI think it would be best if the packages in these images were consistent with the environment created by `ensurepip` / `venv`. Which for Python 3.12+ would mean not shipping with setuptools or wheel.\r\n\r\nThere are a few ways this could be done:\r\n1. For Python 3.12+, pass `--no-setuptools` and `--no-wheel` when invoking get-pip.py.\r\n2. By switching from get-pip to ensurepip (#951), which would (a) mean these images automatically match the behaviour of the stdlib, (b) mean a lot of the version pinning/handling code can be simplified (since ensurepip defaults to installing the bundled version, not the latest version from PyPI).\r\n3. By waiting for when https://github.com/pypa/get-pip/pull/218 is merged. Though at that point, there is even less reason for this repo to keep using get-pip instead of ensurepip, so we'd probably want to do (2) anyway.\r\n\r\nSee also:\r\n- https://github.com/pypa/virtualenv/issues/2487\r\n- https://github.com/pypa/get-pip/pull/218","author":{"url":"https://github.com/edmorley","@type":"Person","name":"edmorley"},"datePublished":"2024-08-21T15:32:50Z","url":"https://github.com/docker-library/python/issues/952"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:76eaa785-b1b8-6986-8710-377a5c2d4a22
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8122:16B4F1:13EEC5:1B2551:6AFE9084
html-safe-nonce52d47f95c4d950e08490617adb9ad1c488c5154daaf5ba2e070724a85effd3be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTIyOjE2QjRGMToxM0VFQzU6MUIyNTUxOjZBRkU5MDg0IiwidmlzaXRvcl9pZCI6IjI3MDA0NzY1MTYxMDk1NTM3OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace5ad104201f0c717794aad48c9c36a88b298cbb78fb66120ef93bd0fefc0289e
hovercard-subject-tagissue:2478361349
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/952/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b755ac35f133787324dbca7a55b4eef41815238f121cbb59795b04eb993f684a/docker-library/python/issues/952
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b755ac35f133787324dbca7a55b4eef41815238f121cbb59795b04eb993f684a/docker-library/python/issues/952
og:image:altIn Python 3.12, the stdlib's ensurepip and venv modules were updated to no longer install setuptools alongside pip. This was viable since as of pip v22.1, for pre-PEP-517/518 packages pip will now ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedmorley
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/docker-library/python git https://github.com/docker-library/python.git
octolytics-dimension-user_id7739233
octolytics-dimension-user_logindocker-library
octolytics-dimension-repository_id21054928
octolytics-dimension-repository_nwodocker-library/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21054928
octolytics-dimension-repository_network_root_nwodocker-library/python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/docker-library/python/issues/952#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fissues%2F952
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fissues%2F952
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=docker-library%2Fpython
Reloadhttps://github.com/docker-library/python/issues/952
Reloadhttps://github.com/docker-library/python/issues/952
Reloadhttps://github.com/docker-library/python/issues/952
docker-libraryhttps://github.com/docker-library
pythonhttps://github.com/docker-library/python
Codehttps://github.com/docker-library/python
Issues23 (23)https://github.com/docker-library/python/issues
Pull requests5 (5)https://github.com/docker-library/python/pulls
Discussionshttps://github.com/docker-library/python/discussions
Actionshttps://github.com/docker-library/python/actions
Projectshttps://github.com/docker-library/python/projects
Security and qualityhttps://github.com/docker-library/python/security
Insightshttps://github.com/docker-library/python/insights
https://github.com/docker-library/python
New issuehttps://github.com/login?return_to=https://github.com/docker-library/python/issues/952
New issuehttps://github.com/login?return_to=https://github.com/docker-library/python/issues/952
#954https://github.com/docker-library/python/pull/954
Stop including setuptools and wheel in Python 3.12+ imageshttps://github.com/docker-library/python/issues/952#top
#954https://github.com/docker-library/python/pull/954
https://github.com/edmorley
edmorleyhttps://github.com/edmorley
on Aug 21, 2024https://github.com/docker-library/python/issues/952#issue-2478361349
pip will nowhttps://github.com/pypa/pip/pull/10717
python/cpython#95299https://github.com/python/cpython/issues/95299
python/cpython@ece20dbhttps://github.com/python/cpython/commit/ece20dba120a1a4745721c49f8d7389d4b1ee2a7
#833https://github.com/docker-library/python/pull/833
implicitly installs setuptools and wheelhttps://github.com/pypa/get-pip/blob/ac9253767f0be4cdef620a3ca07187a8cabc66a5/templates/default.py#L46-L78
Switch from get-pip to ensurepip #951https://github.com/docker-library/python/issues/951
Stop installing setuptools and wheel on Python 3.12+ pypa/get-pip#218https://github.com/pypa/get-pip/pull/218
Stop installing setuptools and wheel by default on Python 3.12+ environments pypa/virtualenv#2487https://github.com/pypa/virtualenv/issues/2487
Stop installing setuptools and wheel on Python 3.12+ pypa/get-pip#218https://github.com/pypa/get-pip/pull/218
edmorleyhttps://github.com/edmorley
on Aug 21, 2024https://github.com/docker-library/python/issues/952#event-13965838056
https://github.com/tianon
tianonhttps://github.com/tianon
on Aug 23, 2024https://github.com/docker-library/python/issues/952#issuecomment-2307757743
https://github.com/yosifkit
yosifkithttps://github.com/yosifkit
on Aug 23, 2024https://github.com/docker-library/python/issues/952#issuecomment-2307932877
#954https://github.com/docker-library/python/pull/954
#951https://github.com/docker-library/python/issues/951
tianonhttps://github.com/tianon
completedhttps://github.com/docker-library/python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#954https://github.com/docker-library/python/pull/954
on Aug 29, 2024https://github.com/docker-library/python/issues/952#event-14072171699
Sign up for freehttps://github.com/signup?return_to=https://github.com/docker-library/python/issues/952
Sign in to commenthttps://github.com/login?return_to=https://github.com/docker-library/python/issues/952
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.