facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

buck command for running off par file without build for python #2613

Open jloveric opened 3 years ago

jloveric commented 3 years ago

It seems like buck should have a command for running directly of the par file instead of having to manually call the .par file... (maybe it does and I haven't found it!). The command could be something like "buck execute //some/thing:name" which assumes the target par file already exists and then just runs it with whatever command line options. This would be useful for python especially.

rajyengi commented 3 years ago

I think you may be looking for something like buck run? https://buck.build/command/run.html#content

The key distinction is that it doesn't assume the output already exists, it tries to build and then run (so it's a no-op build if nothing has changed if you already built, or it'll build and run the output).

jloveric commented 3 years ago

Actually buck run is slower than just running off the par file after you've run buck once. buck run must be doing some other checks that take about 10 seconds vs just running off of the par directly. For python I think this is significant since then buck run ends up being slower than using python without buck.