Get(
SourceRootStrippedSources,
StripSourcesFieldRequest(
target.get(Sources),
for_sources_types=(PythonSources, ResourcesSources),
enable_codegen=True,
),
)
for target in targets
)
// Create a chroot with all the sources, and any ancestor __init__.py files that might be needed
// for imports to work. Note that if a repo has multiple exported targets under a single ancestor
// package, then that package must be a namespace package, which in Python 3 means it must not
// have an __init__.py. We don"t validate this here, because it would require inspecting *all*
// targets, whether or not they are in the target set for this run - basically the entire repo.
// So it"s the repo owners" responsibility to ensure __init__.py hygiene.
stripped_srcs_digests = [
stripped_sources.snapshot.digest for stripped_sources in stripped_srcs_list
]
ancestor_init_pys = await Get(AncestorInitPyFiles, Targets, targets)
sources_digest = await Get(