victorious-wire-62055
06/26/2025, 6:33 PM__init__
file in the same folder is a dependency of the script (as well as __init__
files in parent folders, and I haven't found an invocation of !__init__.py
in the BUILD file that changes this behavior.victorious-wire-62055
06/26/2025, 9:35 PMpython_sources(
sources=[*python_sources.sources.default, "!build.py"],
)
python_sources(
name="build",
sources=["build.py"],
overrides={
"build.py": {"dependencies": ["!./__init__.py"]}
},
)
elegant-florist-94385
06/27/2025, 9:52 AMpython_source
for the single build.py
file ro have a little bit more clarity. (You can declare the dependencies directly instead of needing to go through overrides
)victorious-wire-62055
06/27/2025, 3:21 PMbuild.py
in the repository, python_source
on it's own doesn't work for us.elegant-florist-94385
06/27/2025, 6:18 PM