elegant-salesclerk-19767
03/06/2023, 8:02 PMrun backend/sync.py
NoSourceRootError: No source root found for
.``
[source]
root_patterns = ["src/python", "test/python"]
But things like this work..
pants count-loc ::
returns..enough-analyst-54434
03/06/2023, 8:08 PM.
literal in the message.elegant-salesclerk-19767
03/06/2023, 8:09 PMenough-analyst-54434
03/06/2023, 8:10 PMelegant-salesclerk-19767
03/06/2023, 8:10 PM.
coming from?enough-analyst-54434
03/06/2023, 8:11 PM.
literal in the message.from . import sibling_module
elegant-salesclerk-19767
03/06/2023, 8:12 PMenough-analyst-54434
03/06/2023, 8:12 PMelegant-salesclerk-19767
03/06/2023, 8:13 PMenough-analyst-54434
03/06/2023, 8:17 PMsrc/python
or test/python
? You removed the default source roots and those include /
- that might explain .
elegant-salesclerk-19767
03/06/2023, 8:20 PMpants roots
.
src
src/python
pants dependencies --transitive src/python/backend/sync.py
3rdparty/python/requirements.txt:reqs
3rdparty/python:reqs#psutil
src/python/config/app_config.py
enough-analyst-54434
03/06/2023, 8:22 PMelegant-salesclerk-19767
03/06/2023, 8:23 PMenough-analyst-54434
03/06/2023, 8:23 PMelegant-salesclerk-19767
03/06/2023, 8:23 PMpython_sources()
enough-analyst-54434
03/06/2023, 8:23 PMelegant-salesclerk-19767
03/06/2023, 8:25 PMenough-analyst-54434
03/06/2023, 8:26 PMelegant-salesclerk-19767
03/06/2023, 8:26 PMYou must use full path to the file.Thanks this is very helpful
python_sources(
name="lib",
)
in the examples? what did ‘lib’ represent as it was not a folder, function, nor anything I could find.enough-analyst-54434
03/06/2023, 8:28 PMelegant-salesclerk-19767
03/06/2023, 8:29 PMenough-analyst-54434
03/06/2023, 8:29 PMpython_sources
was python_library
.path/to/build/parent/dir:target_name