In a Python codebase, if I have a BUILD file with ...
# general
c
In a Python codebase, if I have a BUILD file with
python_sources(name="foo")
, is it meant to be possible to do
import foo
somewhere else?
1
c
No, the target name for the Pantsbuild metadata about your project is not reflected in the project sources.
c
Alright, just wanted to be sure, thank you!
h
Yeah that name usually isn’t important. You’d typically only use it when you add an explicit
dependencies=[...]
to point to the dependency, and even then you often can just point to the source file, without the target name.