https://pantsbuild.org/ logo
p

plain-sundown-25537

01/03/2020, 7:51 AM
binary.py <--
h

hundreds-father-404

01/03/2020, 12:57 PM
Unfortunately, this will still run Go code :/ this only impacts options parsing. It’s likely the most common misunderstanding with Pants and something we’re moving away from as we migrate things to the V2 engine
c

calm-artist-46894

01/06/2020, 11:19 PM
I ended up creating a new
goal
using plugin and only registered
binary-prep-command
and
py
to it:
Copy code
Goal.register("fast-py-binary", "Create a runnable python binary.")
    TaskRegistrar(name="binary-prep-command", action=RunBinaryPrepCommand).install(
        "fast-py-binary", first=True
    )
    TaskRegistrar(name="py", action=PythonBinaryCreate).install("fast-py-binary")
👍 1
3 Views