adamant-magazine-16751
10/10/2022, 11:37 AMa.py and b.py. a.py depends on b.py without explicitly importing it.
I also have a BUILD file containing python_sources target. Is there a way to tell pants that a depends on b so that it's properly packaged in pexes?fast-nail-55400
10/10/2022, 11:41 AMoverrides attribute on python_sources to set the dependency. https://www.pantsbuild.org/docs/reference-python_sources#codeoverridescodefast-nail-55400
10/10/2022, 11:42 AMoverrides={
"a.py": {
"dependencies": ["b.py"],
}
}adamant-magazine-16751
10/10/2022, 11:45 AM"dependencies": ["./b.py"]
Anyway, it works. Thanks 🙂fast-nail-55400
10/10/2022, 11:59 AM./? That seems like a bug to me.adamant-magazine-16751
10/10/2022, 12:07 PMfast-nail-55400
10/10/2022, 12:16 PM