I figured out `pants export` and tools (very nice!...
# general
a
I figured out
pants export
and tools (very nice!) but if i want these tools in a
run_shell_command
, how would i do that? Should I use shell_command to
pants export
and then consume the venv it generates?
f
Just use
pex_binary
and then use that as a “runnable dependency” for the
run_shell_command
a
gotcha. I would set the module to say, X, for my 3rd party dependency X? Figuring out the exact module name might require some digging into the dependencies code but if that's how it's gotta be done -_-
f
Pants should infer the dependency on X for the
pex_binary
automatically.
And Pex files contains all of their dependencies.
So when you invoke the Pex file from
run_shell_command
, there should be no need for that shell code to care about X being present since it should be present in the Pex