high-yak-85899
04/01/2022, 5:46 PMenough-analyst-54434
04/01/2022, 5:51 PMhigh-yak-85899
04/01/2022, 5:58 PMbusy-vase-39202
04/01/2022, 6:00 PMhappy-kitchen-89482
04/01/2022, 6:10 PMPEX_MODULE
env var.PEX_MODULE=<http://my.app|my.app> mypex.pex
or PEX_MODULE=<http://my.app:main|my.app:main> mypex.pex
high-yak-85899
04/01/2022, 7:06 PMpex_binary(
name="scripts",
script="conscript",
dependencies=[
"//path/to/my/custom:pex", "//:reqs#conscript"
])
but my console script doesn't show up when running that built pex with a --help
flagenough-analyst-54434
04/01/2022, 7:51 PMpex_binary
needs to depend directly or indirectly on each python_distribution
of yours that has a console script defined.high-yak-85899
04/01/2022, 8:09 PMpython_distribution
target. Seems like I can't depend on that target in my pex_binary
target that uses console script.tar.gz
sine python_distribution
throws that file in tar.gz
.python_distribution
. I get
ProcessExecutionFailure: Process 'List contents of artifacts produced by //:scripts' failed with exit code 9.
at the moment. But I can run ./pants package //:scripts
where scripts
is my python_distribution
target.happy-kitchen-89482
04/01/2022, 9:15 PMhigh-yak-85899
04/01/2022, 9:23 PMconscript
conscript
.happy-kitchen-89482
04/01/2022, 9:24 PMpex_binary
depend on the `python_distribution`shigh-yak-85899
04/01/2022, 9:26 PMbusy-vase-39202
04/01/2022, 9:43 PMhigh-yak-85899
04/01/2022, 9:44 PMhappy-kitchen-89482
04/01/2022, 9:48 PM--print-stacktrace
) ?high-yak-85899
04/01/2022, 9:49 PMhappy-kitchen-89482
04/01/2022, 9:50 PMunzip
to get the file list from the wheel.high-yak-85899
04/01/2022, 9:57 PMhappy-kitchen-89482
04/01/2022, 11:24 PMunzip
shouldn't be taking up much RAM just to whizz through the file list in the .whl