Open pylint-bot opened 8 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore):
We do have a fix for declare_namespace (https://bitbucket.org/logilab/astroid/src/220d7a368bcf4fb12deffa07acd309135aa724bd/astroid/modutils.py?at=default&fileviewer=file-view-default#modutils.py-686), but we need to figure out why it's not caught.
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore):
Ah, it's declare_namespace(__name__
).
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore):
This particular issue has no fix, I didn't have time to work on it. The one where support for declare_name(__name__
) was added will be released shortly with pylint 1.5.0 / astroid 1.4.0. When exactly, I don't know. I'm going to start cherry-picking changes from default to 1.4.0 this week, but I have no idea when it will be finished.
Originally reported by: Adam Groszer (BitBucket: agroszer, GitHub: agroszer)
z3c packages use a variation of
zope packages use
astroid has a workaround that checks for
pkgutil.extend_path
but not forpkg_resources.declare_namespace
(in modutils.py def _module_file). That's why z3c packages are import-error despite being on PYTHONPATHAny chance to get
pkg_resources.declare_namespace
checking?