Another Q: Does Pants support <PEP 420 โ€“ Implicit ...
# general
h
Another Q: Does Pants support PEP 420 โ€“ Implicit Namespace Packages?
๐Ÿงต
n
Yep! Using it daily without any issues ๐Ÿ™‚
h
๐ŸŽ‰ ๐Ÿ™
b
Also supports explicit namespace packages, which I personally recommend ๐Ÿ˜›
h
Do you mean the
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
thing?
b
Yeah (looks about right)
It's ugly as hell, but I prefer explicit over implicit ๐Ÿ™ˆ
h
I see. I do also, but it seems that in the NS case the implicit is the standard ๐Ÿ˜ž
Also, I get a lot of warnings of the form:
Copy code
16:51:26.87 [WARN] Pants cannot infer owners for the following imports in the target proj_1/test/foo.py:

  * numpy (line: 2)
Also with
click
and other packages. These packages are all in the req file. What does it mean to own them in that case?
b
Might wanna start a new ๐Ÿงต
h
Ack