high-yak-85899
04/17/2024, 2:26 AMpython_sources(
name="my_parametrized_source",
overrides={
"some_source.py": {
"dependencies": parametrize(variant1=[":some_thing"], variant2=[":another_thing"])
}
}
)
pex_binary(
name="my_binary",
entry_point="some_source.py",
dependencies=["//some_source.py:my_parametrized_source@variant1"]
)
and things just worked. In >=2.20, you get UnownedDependencyError on inferring the entry point to the pex_binary and then it lists out all the parametrized options.high-yak-85899
04/17/2024, 2:28 AMhigh-yak-85899
04/17/2024, 2:29 AMentry_point to executable, but I'm not really sure why.high-yak-85899
04/17/2024, 2:35 AMexecutable is the correct use of what we're going forbroad-processor-92400
04/17/2024, 3:17 AMbroad-processor-92400
04/17/2024, 4:34 AMentry_point="//some_source.py:my_parametrized_source@variant1" may both stop the error and eliminate the need for the explicit dependencies=[...] setting? (I'm not sure if entry_point allows a full target address, instead of just a file path)happy-kitchen-89482
04/17/2024, 6:58 PMhigh-yak-85899
04/17/2024, 6:59 PMexecutable worked fine. I don't think the target address for entry_point works that way, though.high-yak-85899
04/17/2024, 6:59 PM: as a function definition in the modulebroad-processor-92400
04/17/2024, 11:21 PMThe docs say it will interpret the stuff afterAh, right. That's unfortunate. --- I've filed https://github.com/pantsbuild/pants/issues/20806 because it seems like this warning is both redundant and unsilenceableas a function definition in the module:
high-yak-85899
05/15/2024, 2:40 PMbroad-processor-92400
05/15/2024, 10:27 PMhigh-yak-85899
05/15/2024, 10:28 PMpants dependents command as my signal. Previous versions were failingbroad-processor-92400
05/15/2024, 10:30 PMhigh-yak-85899
05/15/2024, 10:31 PMhigh-yak-85899
07/31/2024, 3:29 PMbroad-processor-92400
08/01/2024, 12:12 AMhigh-yak-85899
11/20/2024, 9:19 PMhigh-yak-85899
11/20/2024, 9:20 PMhigh-yak-85899
11/20/2024, 9:47 PMPEX_MODULE environment variables