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


_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to