Skip to content

Commit e302531

Browse files
committed
Make clear which package is calling pkg_resources.declare_namespaces
1 parent 51191fa commit e302531

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg_resources/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,7 @@ def declare_namespace(packageName):
22892289
"""Declare that package 'packageName' is a namespace package"""
22902290

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

0 commit comments

Comments
 (0)