-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silently ignore pkg_resources override on 3.12+
This customization is generally provided by the distributor, and the user can do nothing if the environment is configured incorrectly. So instead of breaking pip entirely, we silently ignore the customization and let the distributor correct the situation.
- Loading branch information
Showing
2 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Emit an error to prevent the ``pkg_resources`` metadata backend from being used | ||
on Python 3.12 or later. This backend exists for backward compatibility, and | ||
should only be used on newer Python versions by Python distributors that cannot | ||
correctly implement ``importlib.metadata`` support in a timely fashion. Time is | ||
up for transition since CPython is now removing mechanisms that ``pkg_resource`` | ||
Prevent the ``pkg_resources`` metadata backend from being used on Python 3.12 | ||
or later. This backend exists for backward compatibility, and should only be | ||
used on newer Python versions by Python distributors that cannot correctly | ||
implement ``importlib.metadata`` support in a timely fashion. Time is up for | ||
transition since CPython is now removing mechanisms that ``pkg_resource`` | ||
relies on, and the backend will no longer work on Python 3.12 or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters