aloof-angle-91616
09/21/2020, 2:29 PM__init__.py
file in every directory in order to detect a package within it. is there such a file in ns/bar/common
?billowy-motherboard-58443
09/21/2020, 2:29 PMbillowy-motherboard-58443
09/21/2020, 2:30 PMaloof-angle-91616
09/21/2020, 2:30 PMbillowy-motherboard-58443
09/21/2020, 2:30 PMaloof-angle-91616
09/21/2020, 2:31 PMbillowy-motherboard-58443
09/21/2020, 2:32 PMaloof-angle-91616
09/21/2020, 2:39 PMaloof-angle-91616
09/21/2020, 2:40 PM__init__.py
files, let me try againaloof-angle-91616
09/21/2020, 2:41 PMns/__init__.py
and ns/bar/__init__.py
as well? i assume so since you mentioned "plain python"aloof-angle-91616
09/21/2020, 2:42 PMaloof-angle-91616
09/21/2020, 2:44 PMns/
is a top-level directory, then it's not within a nested directory such as src/python
. pants uses "source root patterns" to infer what the root package is. there are ways to avoid having to modify your directory structure thoughbillowy-motherboard-58443
09/21/2020, 2:44 PMbillowy-motherboard-58443
09/21/2020, 2:44 PMbillowy-motherboard-58443
09/21/2020, 2:44 PMaloof-angle-91616
09/21/2020, 2:45 PM[source]
root_patterns = ['/']
i thinkbillowy-motherboard-58443
09/21/2020, 2:45 PMroot_patterns = ['/', 'ns']
?aloof-angle-91616
09/21/2020, 2:45 PMbillowy-motherboard-58443
09/21/2020, 2:45 PMaloof-angle-91616
09/21/2020, 2:45 PM/
, so i've failed to answer your question twicealoof-angle-91616
09/21/2020, 2:46 PM./pants roots
billowy-motherboard-58443
09/21/2020, 2:46 PMroot_patterns = ["/", "/ns"]
did not help, FWIWaloof-angle-91616
09/21/2020, 2:47 PM/
is included as defaultbillowy-motherboard-58443
09/21/2020, 2:47 PM./pants roots
simply replies with .
even after I added /ns
aloof-angle-91616
09/21/2020, 2:48 PMaloof-angle-91616
09/21/2020, 2:49 PMbillowy-motherboard-58443
09/21/2020, 2:49 PMbillowy-motherboard-58443
09/21/2020, 2:50 PMaloof-angle-91616
09/21/2020, 2:50 PM./pants roots
. we should be able to print every python package namespace that it detects, for examplebillowy-motherboard-58443
09/21/2020, 2:50 PMns
which isn't what it really is in the repo)