Skip to content
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

[BUG] setuptools is using deprecated and slated to be removed APIs #3631

Closed
warsaw opened this issue Oct 10, 2022 · 1 comment · Fixed by #3685
Closed

[BUG] setuptools is using deprecated and slated to be removed APIs #3631

warsaw opened this issue Oct 10, 2022 · 1 comment · Fixed by #3685
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.

Comments

@warsaw
Copy link
Contributor

warsaw commented Oct 10, 2022

setuptools version

65.4.1

Python version

3.12

OS

macOS

Additional environment information

No response

Description

As described over in the pip issue tracker, several long-deprecated Python import related APIs are being removed in Python 3.12. All of these have been documented as deprecated for years (in most cases, since Python 3.3). Now is the time to remove them.

However, this is blocked on references to these old APIs in pkg_resources which, through twisty mazes, breaks Python 3.12's build because of its vendoring of pip, hence, setuptools, hence pkg_resources.

Here is the upstream Python ticket tracking these removals, which contains the APIs that are being removed. The pip issue above has references to the places in pkg_resources where these APIs are still being used.

Expected behavior

Nothing in pkg_resources, setuptools, or pip should reference these long deprecated APIs.

How to Reproduce

See the description in the pip issue description.

Output

See the description in the pip issue description.

@kdeldycke
Copy link

Also related: pypa/pip#11688

SnoopJ added a commit to SnoopJ/sopel that referenced this issue Oct 5, 2023
Versions of setuptools before 66.1 used deprecated portions of `pkgutil`
that were removed in Python 3.12. More information:

pypa/setuptools#3631
https://setuptools.pypa.io/en/latest/history.html#v66-1-0
SnoopJ added a commit to SnoopJ/sopel that referenced this issue Oct 30, 2023
Versions of setuptools before 66.1 used deprecated portions of `pkgutil`
that were removed in Python 3.12. More information:

pypa/setuptools#3631
https://setuptools.pypa.io/en/latest/history.html#v66-1-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
2 participants