Title: PEP 632: Remove the distutils package (Python 3.12) · Issue #92584 · python/cpython · GitHub
Open Graph Title: PEP 632: Remove the distutils package (Python 3.12) · Issue #92584 · python/cpython
X Title: PEP 632: Remove the distutils package (Python 3.12) · Issue #92584 · python/cpython
Description: The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12. Right now, Python still uses distutils for different purpose: Build C extensions which can not be built by Makefile yet. Python 3.11 can buil...
Open Graph Description: The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12. Right now, Python still uses distutils for different purpose: Build C extensions which can not be bui...
X Description: The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12. Right now, Python still uses distutils for different purpose: Build C extensions which can not be bui...
Opengraph URL: https://github.com/python/cpython/issues/92584
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 632: Remove the distutils package (Python 3.12)","articleBody":"The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12.\r\n\r\nRight now, Python still uses distutils for different purpose:\r\n\r\n* Build C extensions which can not be built by Makefile yet. Python 3.11 can build way more C extensions with Makefile than Python 3.10.\r\n* peg_generator uses distutils to build C extensions.\r\n* test_cppext uses distutils to check that the Python C API can be used in C++.\r\n* ``Tools/c-analyzer/`` uses distutils to get a C preprocessor.\r\n\r\nUntil Python can be built and used without distutils, I propose to first rename the ``distutils`` package to ``_distutils``: rename th ``Lib/distutils/`` directory to ``Lib/_distutils/``.\r\n\r\nRight now, test_venv fails without distutils, because pip fails on importing the distutils module in ``pip/_internal/locations/_distutils.py``: https://github.com/pypa/pip/blob/cb24fb4052ca8ab8009866b0de61980c81a7e13c/src/pip/_internal/locations/_distutils.py#L9-L12\r\n\r\nI created the PR #92585 which renames distutils to _distutils.\n\n\u003c!-- gh-pr-number: gh-99061 --\u003e\n* PR: gh-99061\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99062 --\u003e\n* PR: gh-99062\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-104744 --\u003e\n* PR: gh-104744\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108018 --\u003e\n* PR: gh-108018\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108020 --\u003e\n* PR: gh-108020\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108024 --\u003e\n* PR: gh-108024\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108026 --\u003e\n* PR: gh-108026\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108030 --\u003e\n* PR: gh-108030\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108031 --\u003e\n* PR: gh-108031\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108039 --\u003e\n* PR: gh-108039\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108040 --\u003e\n* PR: gh-108040\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108043 --\u003e\n* PR: gh-108043\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108044 --\u003e\n* PR: gh-108044\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108047 --\u003e\n* PR: gh-108047\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108057 --\u003e\n* PR: gh-108057\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108058 --\u003e\n* PR: gh-108058\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108059 --\u003e\n* PR: gh-108059\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108060 --\u003e\n* PR: gh-108060\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108061 --\u003e\n* PR: gh-108061\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108062 --\u003e\n* PR: gh-108062\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108063 --\u003e\n* PR: gh-108063\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-108333 --\u003e\n* PR: gh-108333\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-110213 --\u003e\n* PR: gh-110213\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-110214 --\u003e\n* PR: gh-110214\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2022-05-09T22:42:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":44},"url":"https://github.com/92584/cpython/issues/92584"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e6643f76-eec8-6f4d-9a89-53561a902eb2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F3E:3856C7:A9AEA2:EF05FD:696A5633 |
| html-safe-nonce | 159f091283613b5964e9d2b8406df8c952dbe336050cd09627fd9d52980d65c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjNFOjM4NTZDNzpBOUFFQTI6RUYwNUZEOjY5NkE1NjMzIiwidmlzaXRvcl9pZCI6IjU1NTY0NDc4NzYwNTgwNzY3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1a78566472091e11575cd04e21592b9a0e7e3d74a9ef8ce29cea966a69adea80 |
| hovercard-subject-tag | issue:1230326042 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/92584/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adeb656e233288e87861b5e38d4b2180c45ff8b3aea4201dbb5e45f92d0fd3af/python/cpython/issues/92584 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adeb656e233288e87861b5e38d4b2180c45ff8b3aea4201dbb5e45f92d0fd3af/python/cpython/issues/92584 |
| og:image:alt | The distutils module was deprecated in Python 3.10 and is scheduled for removal in Python 3.12. Right now, Python still uses distutils for different purpose: Build C extensions which can not be bui... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width