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.happy-kitchen-89482
04/01/2022, 6:11 PMPEX_MODULE=<http://my.app|my.app> mypex.pex or PEX_MODULE=<http://my.app:main|my.app:main> mypex.pexhigh-yak-85899
04/01/2022, 7:06 PMhigh-yak-85899
04/01/2022, 7:17 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.high-yak-85899
04/01/2022, 8:10 PMtar.gz sine python_distribution throws that file in tar.gz.high-yak-85899
04/01/2022, 8:12 PMhigh-yak-85899
04/01/2022, 8:22 PMpython_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 PMhappy-kitchen-89482
04/01/2022, 9:15 PMhappy-kitchen-89482
04/01/2022, 9:15 PMhigh-yak-85899
04/01/2022, 9:23 PMconscripthigh-yak-85899
04/01/2022, 9:24 PMconscript.happy-kitchen-89482
04/01/2022, 9:24 PMhappy-kitchen-89482
04/01/2022, 9:24 PMpex_binary depend on the `python_distribution`shappy-kitchen-89482
04/01/2022, 9:25 PMhigh-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 PMhappy-kitchen-89482
04/01/2022, 9:51 PMhappy-kitchen-89482
04/01/2022, 9:53 PMunzip to get the file list from the wheel.happy-kitchen-89482
04/01/2022, 9:53 PMhigh-yak-85899
04/01/2022, 9:57 PMhigh-yak-85899
04/01/2022, 9:57 PMhigh-yak-85899
04/01/2022, 9:57 PMhappy-kitchen-89482
04/01/2022, 11:24 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