Maybe this is trivial but I don’t see it right now...
# general
f
Maybe this is trivial but I don’t see it right now: if a python package comes with a command-line interface that it “installs”, how can how run that through pants (i.e. using the exact dependency from the lockfile)?
b
Are you trying to run it “interactively”? One option is
pants run path/to:dependency
if the entry point is a default one. Otherwise building a
pex_binary
using that dependency and its scripts as configuration.
f
Yeah, I am basically asking what the equivalent of
python -m some_module
is. When you say
pants run path/to:dependency
(or
pants run path/to/dependencies_target#dependency
) does that, thanks. (With the difference that
dependency
here is the “PyPI package name”, not the
module
name — in cases they have a mismatch.)
👍 1