https://pantsbuild.org/ logo
#general
Title
# general
c

cold-vr-15232

12/15/2022, 10:34 AM
I can't find any page explaining what the pex tools are and do, is there any?
r

refined-addition-53644

12/15/2022, 11:58 AM
or do you mean the
PEX_TOOLS
option itself?
c

cold-vr-15232

12/15/2022, 12:09 PM
Yes, I mean, what tools does PEX_TOOLS add and how to use them?
e

enough-analyst-54434

12/15/2022, 12:40 PM
Currently your best bet is the oldest and most universal bet. Just try it. Either add the option to a
pex_binary
target in Pants, run
./pants package ...
and then run
PEX_TOOLS=1 dist/my.pex --help
, or install Pex in a venv somewhere and run
pex-tools -h
. You'll get a list of 5 subcommands:
Copy code
$ pex-tools
usage: pex-tools [-h] [-V]
                 PATH
                 {info,interpreter,graph,repository,venv}
                 ...
pex-tools: error: the following arguments are required: PATH
You can then drill in on each, again with the old
--help
trick.
c

cold-vr-15232

12/15/2022, 12:46 PM
Ok, thanks!
c

curved-television-6568

12/15/2022, 1:12 PM
Currently your best bet is the oldest and most universal bet.
I was so expecting this to continue with: “.. Read the source.” as the oldest most universal 😄
c

cold-vr-15232

12/15/2022, 1:28 PM
🙂 That would be a good answer if my question had been "what's the thing with pex_tools?", but I asked about a documentation page, if it exists or not.
e

enough-analyst-54434

12/15/2022, 1:41 PM
I personally much prefer command line help, it's ~always there. No need to Google to find some arbitrary site. And there is no better way for me to learn than by doing; so command line help is best. Man pages, second best. The rest, I'm in trouble if I have to reach for that...!
c

cold-vr-15232

12/15/2022, 3:13 PM
For simple things it is ideal. For heavy prose (for example "man bash"), a web page is better for me.
4 Views