[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

"Impure" Python modules

Mike Driscoll

12/27/2007 9:54:00 PM

Hi,

Is there some way to get a list of "impure" Python modules/extensions
from PyPI? I know the mySQL module is a good example, but I am
working on creating some decent instructions on how to create Windows
installers from impure modules and am having a hard time finding them.

Thanks!

Mike
3 Answers

Martin v. Loewis

12/27/2007 11:38:00 PM

0

> Is there some way to get a list of "impure" Python modules/extensions
> from PyPI?

Not easily. To create a full list, you will have to download all
packages, and check their respective setup.py files for occurrences
of Extension.

A subset can probably be found by looking at all packages classified
as Programming Language :: C

http://pypi.python.org/pypi?:action=browse...

or Programming Language :: C++

http://pypi.python.org/pypi?:action=browse&show=all...

Of course, some of those may only generate C, or deal with C in
some other sense than being written in it.

HTH,
Martin

Mike Driscoll

12/28/2007 2:08:00 PM

0

James,

In Python extension parlance, it means that the extension was not
written completely in Python. Example include the mySQL module,
wxPython, and one of the openGL modules. All of those have some C/C++
dependencies. I think numpy does too, now that I think about it.

Anyway, I hope that answers your question.

Mike


On Dec 27, 2007 4:47 PM, James Matthews <nytrokiss@gmail.com> wrote:
> I don't quite understand what the word "impure" means here!
>
> On Dec 27, 2007 10:53 PM, <kyosohma@gmail.com> wrote:
> > Hi,
> >
> > Is there some way to get a list of "impure" Python modules/extensions
> > from PyPI? I know the mySQL module is a good example, but I am
> > working on creating some decent instructions on how to create Windows
> > installers from impure modules and am having a hard time finding them.
> >
> > Thanks!
> >
> > Mike
> > --
> > http://mail.python.org/mailman/listinfo/p...
> >
>
>
>
> --
> http://search.goldwatches.com/?Search=Mova...
> http://www.jewelers...
> http://www.goldw...

Mike Driscoll

12/28/2007 2:11:00 PM

0

On Dec 27, 5:38 pm, "Martin v. Löwis" <mar...@v.loewis.de> wrote:
> > Is there some way to get a list of "impure" Python modules/extensions
> > from PyPI?
>
> Not easily. To create a full list, you will have to download all
> packages, and check their respective setup.py files for occurrences
> of Extension.


I figured as much. I thought about writing some kind of script based
on the way Easy Setup downloads modules and just doing that, but
there's upwards of 2000 extensions on there.

>
> A subset can probably be found by looking at all packages classified
> as Programming Language :: C
>
> http://pypi.python.org/pypi?:action=browse...
>
> or Programming Language :: C++
>
> http://pypi.python.org/pypi?:action=browse&show=all...
>
> Of course, some of those may only generate C, or deal with C in
> some other sense than being written in it.
>
> HTH,
> Martin

Thanks, Martin. Those links will be helpful. I'll start looking at
them this weekend.

Mike