[Distutils] distribute 0.6.10 and convert_2to3_doctests

P.J. Eby pje at telecommunity.com
Sat Jan 30 01:59:57 CET 2010


At 11:32 AM 1/30/2010 +1100, Ben Finney wrote:
>That assumes that the only things that will need to query the 
>package's version are Python modules. That's often not the case, 
>especially when there are other tools (e.g. shell programs, make 
>files, or any program not written in Python) that are part of the 
>same package. Better would be to have a *non-executable* data file 
>containing the version string and other such package meta-data. 
>“Query the metadata” should not necessarily imply “parse or 
>execute a bunch of Python code”.

Which is precisely why that way's better; pkg_resources is just 
parsing the info from a PKG-INFO file -- or more commonly, just 
parsing a file or directory *name*, without even opening a file.  So 
other tools can certainly do the same.



More information about the Distutils-SIG mailing list