gorgeous-eve-12553
07/25/2020, 1:39 AMhundreds-father-404
07/25/2020, 1:43 AMgorgeous-eve-12553
07/25/2020, 1:44 AMpython_binary(
name = "main",
sources = ["main.py"],
entry_point = "primitive.main",
)
hundreds-father-404
07/25/2020, 1:45 AMentry_point
because we’ll infer it thanks to you providing the sources
field, but it’s also not wrong to keep it.hundreds-father-404
07/25/2020, 1:45 AMpants.toml
?gorgeous-eve-12553
07/25/2020, 1:47 AM[GLOBAL]
pants_version = "1.30.0"
v1 = false # Turn off the v1 execution engine.
v2 = true # Enable the v2 execution engine.
pantsd = true # Enable the Pants daemon for better performance.
backend_packages = [] # Deregister all v1 backends.
hundreds-father-404
07/25/2020, 1:48 AMbackend_packages2 = ["pants.backend.python"]
? That is how you activate the Python functionalityhundreds-father-404
07/25/2020, 1:49 AMgorgeous-eve-12553
07/25/2020, 1:50 AMgorgeous-eve-12553
07/25/2020, 1:50 AMgorgeous-eve-12553
07/25/2020, 1:50 AMhundreds-father-404
07/25/2020, 1:53 AMdependencies
field in BUILD files.
The latest release is 2.0.0.dev5. You would set that in pants.toml
for pants_version
. Then, rename backend_packages2
to backend_packages
and remove the earlier value. See https://www.pantsbuild.org/v2.0/docs/configuring-pantshundreds-father-404
07/25/2020, 1:54 AMgorgeous-eve-12553
07/25/2020, 1:55 AMhundreds-father-404
07/25/2020, 1:55 AMhundreds-father-404
07/25/2020, 1:55 AMCan I just set my version to “2” and let it update?You can set
pants_version = "2.0.0.dev5"
and it will updategorgeous-eve-12553
07/25/2020, 1:58 AMhundreds-father-404
07/25/2020, 1:59 AMgorgeous-eve-12553
07/25/2020, 2:00 AMhundreds-father-404
07/25/2020, 2:01 AMgorgeous-eve-12553
07/25/2020, 2:01 AMhundreds-father-404
07/25/2020, 2:02 AMgorgeous-eve-12553
07/25/2020, 2:04 AMhundreds-father-404
07/25/2020, 2:05 AMgorgeous-eve-12553
07/25/2020, 2:09 AMgorgeous-eve-12553
07/25/2020, 2:12 AMhundreds-father-404
07/25/2020, 2:13 AMgorgeous-eve-12553
07/25/2020, 2:13 AMgorgeous-eve-12553
07/25/2020, 2:13 AMhundreds-father-404
07/25/2020, 2:13 AMhundreds-father-404
07/25/2020, 2:15 AMhundreds-father-404
07/25/2020, 2:16 AMwitty-crayon-22786
07/26/2020, 11:23 PM