calm-balloon-91412
04/01/2020, 9:29 PMhundreds-father-404
04/01/2020, 9:34 PMsource_files
, and finally tell Pex --sources-directory=source_files/
.
The chroot means that we will only copy the files we actually care about../pants binary
and ./pants run
is ready to use 🙂
To try it out, run ./pants --no-v1 --backend-packages2='pants.backend.python' binary path/to:python_binary_target
calm-balloon-91412
04/01/2020, 10:18 PMhundreds-father-404
04/01/2020, 10:24 PM--v2
then for it to work. We turned on --v2
by default in 1.26.0.
./pants --no-v1 --v2 --backend-packages2='pants.backend.python' binary path/to:python_binary_target
--no-v1
means don’t use the V1 implementation of binary
too. If you had --v1 --v2 binary
, then you would create it both with V1 and V2, which you probably don’t want because it’s a waste of time to create the same binary twice.)is this ready to be used from version 1.25.0Yes, the one current limitation is that we ignore some fields like
zip_safe
in your BUILD file. I’m working on fixing that as we speak and the next weekly dev release should have full feature parity to V1.
Some of the upsides for using V2 binary are:
* smarter caching
* less verbose output
* avoids irrelevant work that V1 does - should be faster
* works more ergonomically with custom target typescalm-balloon-91412
04/01/2020, 10:31 PMhundreds-father-404
04/01/2020, 10:32 PM