[Distutils] how can I egt the packages and modules in a distribution?

Chris Withers chris at simplistix.co.uk
Fri Aug 20 16:19:38 CEST 2010

P.J. Eby wrote:
>> Which template do I get if I do:
>> pkg_resources.resource_string(tuple(pkg_resources.parse_requirements('XA'))[0],'templates/master') 
>> ...in the context of pip or another flat-structure install?
> You get whatever was installed last.

Is pkg_resources.resource_string(<requirement>,..) *ever* useful or sane 

It doesn't sound like it, in which case, could it be deprecated and 
removed please?

> (Alternatively, they can put their stuff under the project's egg-info 
> directory, the way EggTranslations does.)

What's EggTranslations and where can I see its code?


More information about the Distutils-SIG mailing list