rhythmic-airport-91451
08/15/2022, 4:21 PMwide-midnight-78598
08/15/2022, 4:23 PMwide-midnight-78598
08/15/2022, 4:23 PMenough-analyst-54434
08/15/2022, 4:49 PMhappy-kitchen-89482
08/15/2022, 5:26 PMrhythmic-airport-91451
08/15/2022, 6:48 PMenough-analyst-54434
08/15/2022, 7:04 PMrhythmic-airport-91451
08/16/2022, 8:43 PMenough-analyst-54434
08/16/2022, 8:57 PM./pants roots
, the (relevant) BUILD file contents (i.e.: how you're attempting to wire this up) as well as the Pants command you run and the failure or unexpected result you get from that command. The more self-contained you can make the example, the easier it is to help you.enough-analyst-54434
08/16/2022, 8:58 PMrhythmic-airport-91451
08/16/2022, 9:53 PM./pants roots
it only shows the .
and common
in the output. I tried to throw in python_requirements
and python_sources
but it wasn't able to resolve. I guess I'll tailor my question more towards the following: with the structure of the project that I defined above, what's the best way to bring in the common_dir
as a dependency for the service_dor
? Is it through adding it as a requirement to the parent BUILD and referring to it in the services dir?enough-analyst-54434
08/16/2022, 11:01 PM./pants roots
prints out the paths you would need to add to PYTHONPATH
to get a standard Python repl session to see and be able to import all of your code, and then you run ./pants tailor
to generate BUILD files, everything should normally just work and Pants should infer all the dependencies automatically. Only if config.py
is imported in a non-standard way by `service.py`will that automatic dependency inference fail: say via something like config = importlib.import_module("con" + "fig")
. If the import is a normal import config
then we should work out why dependency inference isn't working. If the import is tricky like the example, then you do need to add a manual dependency and we could talk about your BUILD file contents.enough-analyst-54434
08/16/2022, 11:03 PM