Open
Description
Summary
I'm trying to work out how to remove uses of:
import pkg_resources
pkg_resources.declare_namespace(__name__)
Now that pkg_resources
is deprecated.
There is a docs section on this:
Which suggests the following snippet:
__import__("pkg_resources").declare_namespace(__name__)
Won't this also not work because pkg_resources
is deprecated?
OS / Environment
No response
Additional Information
na
Code of Conduct
- I agree to follow the PSF Code of Conduct