https://pantsbuild.org/ logo
#general
Title
# general
c

cold-vr-15232

09/27/2022, 1:29 PM
Is there a way to create a pex binary whose name or path includes a version tag? I mean, through already existing means. I saw that pex has the bdist_pex command for setuptools, that seems to do what I want. How can I use it from Pants? And does it work for other build backends? I also saw that this can be done for Docker tags. My guess is that it is possible with a plugin, but that has not been written yet 🙂
b

bitter-ability-32190

09/27/2022, 2:03 PM
I suspect it isn't possible today, but also not hard to support, I think. File a detailed issue, and we can chew on it 🙂
Also, let us know if you're interested in fixing the issue. We can help you along the path
c

cold-vr-15232

09/27/2022, 2:04 PM
Thanks! I will look at the code and see if I feel up to the task.
h

happy-kitchen-89482

09/27/2022, 2:41 PM
There is the vcs_version target, which will generate a version string you can read in your handwritten setup.py
👍 1
There is not yet any wiring for the Pants-generated setup.py to use it
5 Views