Skip to content

Commit

Permalink
Make clear which package is calling pkg_resources.declare_namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 15, 2023
1 parent 51191fa commit e302531
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,7 @@ def declare_namespace(packageName):
"""Declare that package 'packageName' is a namespace package"""

msg = (
f"Deprecated call to `pkg_resources.declare_namespace({packageName!r})`.\n"
"Implementing implicit namespace packages (as specified in PEP 420) "
"is preferred to `pkg_resources.declare_namespace`. "
"See https://setuptools.pypa.io/en/latest/references/"
Expand Down

0 comments on commit e302531

Please sign in to comment.