Hey, a UX question, what is the fastest way to run...
# general
a
Hey, a UX question, what is the fastest way to run (e.g. during the development) a
console_scripts
endpoint of
python_distribution
? Similar to
./pants run <pex_target>
? Or is it incouraged to develop useing pex binaries? In this case, how to deal with those which contain huge amount of third-party heavy dependencies (think
pytorch
)? thanks in advance 🙏
h
When you
./pants run
a
pex_binary
it doesn't actually build the deployable .pex, so it should be pretty fast.
I can't think of a way to run a
console_script
via Pants
h
You would do something like this:
Copy code
pex_binary(
     name="black",
     dependencies=["3rdparty/python#black"],
    script="black",
)
./pants run path/to:black
You can also set up a
[cli.alias]
to make this even easier to type: https://www.pantsbuild.org/docs/reference-cli#section-alias