How can I get Pants to store the output of git describe
somewhere in my .pex
file so that I can access it from the Python code I'm writing?
Basically I want to be able to clone my project and do this:
./pants binary px
- Distribute the resulting
dist/px.pex
to somebody - That somebody should be able to do
px.pex --version
and get a printout of whatevergit describe
said when I built the.pex
in step one.
Help!
See Question&Answers more detail:os