Third Party Modules

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Apr 28 23:08:27 EDT 2009


En Tue, 28 Apr 2009 15:59:54 -0300, Mike Driscoll <kyosohma at gmail.com>  
escribió:
> On Apr 28, 12:15 pm, John Nagle <na... at animats.com> wrote:
>> Brock wrote:
>>
>> > I see many
>> > tutorials on the web referring to the use of external modules.
>> > However, when I locate them, they often come as a zipped folder with a
>> > number of files.  How do I install them?  In addition, is there an
>> > easy way to manage external modules? Some I see require additional
>> > modules not included.
>>
>>     There's "python ./setup.py".  There are "eggs", which are supposed  
>> to
>> install very simply, but in practice usually fail to install properly,
>> producing obscure error messages.  There are Windows installers.
>> There's no consistency.
>
> I've found the eggs thing to work more often than not. But I've seen
> it fail before too. I'm not sure where tuxagb got the idea that
> there's usually a Windows installer. If I want something, it's usually
> more like a 50-50 chance of there being an installer.

If the package includes some C extensions, typical Windows users won't be  
able to compile them, so a binary distribution is a must.
Usually, it's enough to execute:
python setup.py bdist_wininst
and let distutils do its work.

-- 
Gabriel Genellina




More information about the Python-list mailing list