astonishing-london-2419
09/13/2021, 1:57 PMlib
folder, so for example the common library would be placed in lib/common/namespace/common
(with the build file for each library as lib/common/BUILD
). To include dependencies, I am adding things like dependencies=["lib/common"]
to the library configuraiton, but I am not sure if:
1. I need to add them in module_mapping
, eg, "lib/common": ["namespace.common"]
2. If they re being picked up correctly, because I don’t know how to properly read ./pants dependencies
and they don’t show up in ./pants dependencies --type=3rdparty
Can anybody give me a hint to see if what I’m doing makes sense? Thanks!hundreds-father-404
09/13/2021, 2:04 PMlib/common/namespace/common.py
corresponds to the import namespace.common
. I believe you will want to set up root_patterns = ["lib/common"]
The module_mapping
thing is only for third-party dependencies. Is that what you're having issues with?happy-kitchen-89482
09/13/2021, 2:33 PMastonishing-london-2419
09/14/2021, 7:09 AMhappy-kitchen-89482
09/14/2021, 1:57 PMpython_distribution
?astonishing-london-2419
09/14/2021, 2:05 PM