Are there any docs yet on how the pants workflow c...
# general
d
Are there any docs yet on how the pants workflow changes when using the pex release?
e
The only present docs are here https://www.pantsbuild.org/install.html in the 'PEX-based Installation' section. When that was written, you had to build your own pants.pex. The only difference now is we release a pre-built OSX/Linux multiplatform pex via github releases.
I've filed https://github.com/pantsbuild/setup/issues/27 to track work on a new setup script for pex distribution consumption. Once complete, then the workflow will be identical. Download the new script to your repo and check it in as the replacement for the existing
pants
top-level script. Everything else will remain the same.
d
oh, so you’ll still have a ./pants script, but it will run a pants.pex which is… where?
(download and then run, i mean)
e
The script will looks at pants version in pants.ini as it does today, check for a pex under ~/.cache/pants/setup or thereabouts - similar to how it looks for a virtualenv today, and if not present - download and cache it.
The only difference / advantage will be that there will be 1 file to download and no possibility of triggering local compiles for native distributions pants depends on - those are all pre-built for osx and linux inside the pex
For most folks I imagine this will be a non-event, no obvious change/benefit/loss. It should though make things more stable.
d
cool. thanks for the info
a
after the release-as-a-pex landed i was able to depend on contrib modules for dev releases when specifying e.g.
1.9.0.dev0
in
pants.ini
-- previously it would fail if i tried to add any contrib packages in
pants.ini
for anything other than e.g.
1.8.0
. i am however not sure if this is a direct result of that or if something else occurred in the meantime to enable this
e
Hrm. Dev releases have been working in CI at any rate pre release-as-a-pex: https://travis-ci.org/pantsbuild/setup/builds/392988816 The CI'd bootstrap includes the go contrib plugin.
a
i also thought it was strange. i was trying to use
contrib.scrooge
, and i had a comment in my
pants.ini
that said "why can't i depend on contrib modules if i try to use a dev release? fix this!", and i definitely cannot repro it at all now. i haven't tried depending on previous dev releases, however -- maybe it will fail if i try e.g.
1.7.0.dev0
or something
(very very willing to believe i had configured something else incorrectly, which was causing the issue, so would not be concerned about it until i can repro again)