acceptable-football-32760
03/23/2022, 3:11 PMconsole_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 🙏happy-kitchen-89482
03/24/2022, 5:16 PM./pants run
a pex_binary
it doesn't actually build the deployable .pex, so it should be pretty fast.happy-kitchen-89482
03/24/2022, 5:16 PMconsole_script
via Pantshundreds-father-404
03/24/2022, 6:37 PMpex_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