[Distutils] Q about best practices now (or near future)

Daniel Holth dholth at gmail.com
Thu Jul 18 19:59:49 CEST 2013


On Thu, Jul 18, 2013 at 1:01 PM, Marcus Smith <qwcode at gmail.com> wrote:
>
>
> On Thu, Jul 18, 2013 at 9:49 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk>
> wrote:
>>
>> Marcus Smith <qwcode <at> gmail.com> writes:
>>
>> > the idea to have pip vendor setuptools crumbles a bit due to console
>> scripts
>> needing pkg_resources.
>>
>> They don't *need* pkg_resources. All they're doing is taking a module name
>> and the name of a nested object in the form 'a.b.c', and distlib-generated
>> scripts show that no external references are needed. Here's the template
>> for
>> a distlib-generated script:
>
>
> pkg_resources scripts confirm the version.  don't see that here?  not
> necessary?

It's useful when you have more than one version of things installed as
eggs. pkg_resources does the full dependency resolution and adds
everything to the sys.path.

When you are not doing that then it's not needed.


More information about the Distutils-SIG mailing list