[Distutils] Single version number
Jim Fulton
jim at zope.com
Fri Jul 10 15:58:57 CEST 2009
On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote:
> What do people use to avoid repeating the version number both in the
> setup.py as well as in application/library code, when the
> application/library wants to know its own version number?
...
> 4) I don't recall actually ever seeing this one, but it should be
> possible to use pkg_resources to query the version of yourpackage
Yup. I've recommended this to folks in the past.
> (downside: if you're running from a source checkout without
> installing, you won't get the right version number)
I think you do as long as you run setup.py develop.
Jim
--
Jim Fulton
Zope Corporation
More information about the Distutils-SIG
mailing list