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
At least, this affects the "namespace-detector" in PyCharm. PyCharm does not support this method of namespace definition (because it is not recommended) - https://youtrack.jetbrains.com/issue/PY-38434).
Thanks for the report. I believe the code can be replaced by just the pkg_resources declaration. That's the form that's meant to go along with packages that declare "namespace_packages". Is this change needed for Python 2 environments, or is the change in the master, Python-3-only branch okay?
Also, this code is only used when setuptools converts a wheel to an egg, which should only really happen with setup_requires compatibility installations, which I wouldn't expect to be installed in a user's environment. Is this an actual issue or a just a potential one based on code search?
"Python Packaging User Guide" does not recommend to use namespace
__init__.py
with code like this:https://packaging.python.org/guides/packaging-namespace-packages/#pkg-resources-style-namespace-packages
But constant NAMESPACE_PACKAGE_INIT contains this version of code.
setuptools/setuptools/wheel.py
Lines 30 to 35 in 53c284b
At least, this affects the "namespace-detector" in PyCharm. PyCharm does not support this method of namespace definition (because it is not recommended) - https://youtrack.jetbrains.com/issue/PY-38434).
Need to replace value of this constant with:
The text was updated successfully, but these errors were encountered: