We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e884c00 commit a3d562fCopy full SHA for a3d562f
src/pip/_vendor/pkg_resources/__init__.py
@@ -101,12 +101,10 @@
101
_namespace_packages = None
102
103
104
-warnings.warn(
105
- "pkg_resources is deprecated as an API. "
106
- "See https://setuptools.pypa.io/en/latest/pkg_resources.html",
107
- DeprecationWarning,
108
- stacklevel=2,
109
-)
+# Patch: Remove deprecation warning from vendored pkg_resources.
+# Setting PYTHONWARNINGS=error to verify builds produce no warnings
+# causes immediate exceptions.
+# See https://github.com/pypa/pip/issues/12243
110
111
112
_PEP440_FALLBACK = re.compile(r"^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)", re.I)
0 commit comments