echoing-manchester-70122
04/28/2021, 8:31 PMhundreds-father-404
04/28/2021, 9:22 PMapp.ep1.pex
app.ep2.pex
, where each has the exact same code inside and same settings, and all that changes is the entry point?
If so, you can leverage the fact that BUILD files are Python:
pex_kwargs = dict(
dependencies=[..],
execution_mode="venv"
)
pex_binary(name='p1', entry_point='ep1', **pex_kwargs)
pex_binary(name='p2', entry_point='ep2', **pex_kwargs)
echoing-manchester-70122
06/02/2021, 11:06 PMhundreds-father-404
06/08/2021, 10:09 PM-m
or -c
. How are you hoping/envisioning to use multiple entry points? The issue fwict is that -m
and -c
are used such that ./my_pex.pex
runs with the entry point specified.
Could you set up an entry point that parses the argv to do what you want?