[Distutils] Retrieval of python PKG-INFO data for installed packages

Alan Franzoni mailing at franzoni.eu
Wed Nov 17 18:18:44 CET 2010


Hello,
is it possible to retrieve the same info which is stored in PKG-INFO
for an installed package?

I've seen this project:
http://pypi.python.org/pypi/pkginfo

doesn't anything built in setuptools/distribute/pkg_resources achieve
a similar result?

e.g., while in a lib, I'd like to do something like:
import mymodule

get_pkg_info(mymodule).project_name

?

-- 
Alan Franzoni
--
contact me at public@[mysurname].eu


More information about the Distutils-SIG mailing list