would it be possible to package pants itself as a ...
# general
b
would it be possible to package pants itself as a pex binary?
c
b
I only saw the tarballs
thanks!
c
the release packaging are going through some changes where we are moving away from the PyPI distribution model, as we don’t expect it to be consumed as a regular python dist any way
b
good stuff
c
so the pex-es are a >=2.18 thing (it would seem, @bitter-ability-32190 is the expert here)
oh, nvm the last, maybe it was just some random 2.17 release that was missing the pex files… I see them for older versions as. well
b
Why do you ask? @better-yacht-90735
@curved-television-6568 those were the "universal" PEXs, I wouldn't recommend those
b
@bitter-ability-32190 I want to use pants as a part of a yocto if you are familiar with that. Basically we have a build system for aarch64 linux that we want to create some python packages for that we can then install. But we prefer to create the packages on the fly instead of using a private pypi repo as that will simplify things a lot.
b
Gotcha. So you'd wanna build the PEX yourself?
b
preferably I would just use the already built PEX aarch64 binary
b
Ah, excellent
b
I was just unaware that it existed 🙂
b
🎉
b
is pants.cp39-linux_x86_64.pex not supposed to bundle its own python interpreter?
Copy code
$ ./pants.cp39-linux_x86_64.pex
pyenv: python: command not found
I am running this on ubuntu 20.04 if that is of importance
b
No, that's what the pants binary launcher is for
b
ah
b
We may publish the bundles thing in the future, but not today
b
alright, now I sort of understand what the pants binary launcher is
b
Haha. It downloads Python 3.9 and uses it for running Pants
b
How would I use the pants launcher to execute pants.cp39-linux_x86_64.pex ? I do this
/home/ubuntu/bin/pants ./pants.cp39-linux_x86_64.pex
but it seems to ignore that and insist on using pants stable.
I am aware there is a pants binary launcher but I don't think that is the pants command, I assume that would run pants with the stable binary.
c
you don’t pass the pex to the launcher, and yes, the binary launcher is the
pants
command.
the launcher manages the downloading and installation of pants for you based on which platform you are using and version you have in
pants.toml
b
Oh so I should not use the pex files directly? Just to be clear
c
yea, normally you only download the launcher and run that
👍 1
b
Sorry, we kinda worked backwards here 🙈 Most of this is abstracted from you, but you asked about the PEX so we missed the forest for the trees
🫠 1