You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setuptools.command.develop is imported, pkg_resources DeprecationWarning is omitted, but the user is not importing pkg_resources, setuptools are doing it.
Expected behavior
Setuptools-internal imports of pkg_resources should not emit DeprecationWarnings about pkg_resources . They might convert such DeprecationWarnings to deprecations of the actually user-imported modules if that i the plan.
How to Reproduce
(venv) $ pip install -U setuptools
(venv) $ python -X dev
Python 3.11.2 (main, Feb 8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from setuptools.command.develop import develop
/home/churchyard/tmp/venv/lib64/python3.11/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
Output
>>> from setuptools.command.develop import develop/home/churchyard/tmp/venv/lib64/python3.11/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
The text was updated successfully, but these errors were encountered:
setuptools version
67.6.1, 69.0.3
Python version
3.11.2, 3.12.1
OS
Fedora Linux
Additional environment information
This happens with other Python versions as well.
Description
When
setuptools.command.develop
is imported,pkg_resources
DeprecationWarning is omitted, but the user is not importingpkg_resources
, setuptools are doing it.Expected behavior
Setuptools-internal imports of
pkg_resources
should not emit DeprecationWarnings aboutpkg_resources
. They might convert such DeprecationWarnings to deprecations of the actually user-imported modules if that i the plan.How to Reproduce
Output
The text was updated successfully, but these errors were encountered: