471,596 Members | 919 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

"Impure" Python modules

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
Dec 27 '07 #1
3 1225
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&c=181

or Programming Language :: C++

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

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

HTH,
Martin
Dec 27 '07 #2
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 <ny*******@gmail.comwrote:
I don't quite understand what the word "impure" means here!

On Dec 27, 2007 10:53 PM, <ky******@gmail.comwrote:
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/python-list

--
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com
Dec 28 '07 #3
On Dec 27, 5:38 pm, "Martin v. Löwis" <mar...@v.loewis.dewrote:
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&c=181

or Programming Language :: C++

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

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
Dec 28 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thorsten Kampe | last post: by
4 posts views Thread by dzieciou | last post: by
2 posts views Thread by . | last post: by
3 posts views Thread by Paul Mc Gee | last post: by
12 posts views Thread by Byte | last post: by
4 posts views Thread by Fabian Braennstroem | last post: by
5 posts views Thread by Why Tea | last post: by
reply views Thread by J. Peng | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.