When does a binary extension gets the file extension '.pyd' and when is it '.so'

Fredrik Lundh fredrik at pythonware.com
Sat Apr 5 11:42:00 EDT 2008


Fredrik Lundh wrote:

> and for the record, Python doesn't look for PYD files on any of the Unix 
> boxes I have convenient access to right now.  what Ubuntu version are 
> you using, what Python version do you have, and what does
> 
>      $ python -c "import imp; print imp.get_suffixes()"
> 
> print on your machine?

for reference, here's what I get on Ubuntu 7.10, with the standard 
Python interpreter (2.5.1):

$ python -c "import imp; print imp.get_suffixes()"
[('.so', 'rb', 3), ('module.so', 'rb', 3), ('.py', 'U', 1),
('.pyc', 'rb', 2)]

any Ubuntu gurus here that can sort this one out?

</F>




More information about the Python-list mailing list