Skip to content

gh-132921: Fix setuptools._distutils.dep_util deprecation #132923

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 25, 2025

Replace setuptools._distutils.dep_util with setuptools.modified in peg_generator compile_c_extension().

Replace setuptools._distutils.dep_util with setuptools.modified in
peg_generator compile_c_extension().
@vstinner
Copy link
Member Author

!buildbot AMD64 Fedora Stable PR

@vstinner vstinner enabled auto-merge (squash) April 25, 2025 11:24
@vstinner vstinner merged commit 1a70f66 into python:main Apr 25, 2025
56 checks passed
@vstinner vstinner deleted the modified branch April 25, 2025 11:31
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 25, 2025
…onGH-132923)

Replace setuptools._distutils.dep_util with setuptools.modified in
peg_generator compile_c_extension().
(cherry picked from commit 1a70f66)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Apr 25, 2025

GH-132926 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Apr 25, 2025
vstinner added a commit that referenced this pull request Apr 25, 2025
…132923) (#132926)

gh-132921: Fix setuptools._distutils.dep_util deprecation (GH-132923)

Replace setuptools._distutils.dep_util with setuptools.modified in
peg_generator compile_c_extension().
(cherry picked from commit 1a70f66)

Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner added a commit to vstinner/cpython that referenced this pull request Apr 26, 2025
…precation (pythonGH-132923) (python#132926)"

This reverts commit 3776ade.

setuptools.modified module is not available on old setuptools
versions.
vstinner added a commit that referenced this pull request Apr 26, 2025
…eprecation (GH-132923) (#132926)" (#133004)

Revert "[3.13] gh-132921: Fix setuptools._distutils.dep_util deprecation (GH-132923) (#132926)"

This reverts commit 3776ade.

setuptools.modified module is not available on old setuptools
versions.
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.

2 participants