News for hackers. Stuff that matters.
Re:How To Package Your Python Code by Flimm on Sunday November 18, 2012 @06:28PM (#4802093)
You can use pkg_resources which comes with setuptools to look up the version number of your package in setup.py:

  import pkg_resources
  pkg_resources.get_distribution("PIL").version

There are no comments on this comment yet.