[Python-Dev] PEP 396, Module Version Numbers

P.J. Eby pje at telecommunity.com
Sun Apr 10 06:02:52 CEST 2011


At 08:52 AM 4/10/2011 +1000, Ben Finney wrote:
>This is an often-overlooked case, I think. The unspoken assumption is
>often that ``setup.py`` is a suitable place for the overall version
>string, but this is not the case when that string must be read by
>non-Python programs.

If you haven't used the distutils a lot, you might not realize that 
you can do this:

$ python setup.py --version
0.6c12

(The --name option also works, and they can be used together -- the 
answers will be on two separate lines.)



More information about the Python-Dev mailing list