When does a binary extension gets the file extension '.pyd' and when is it '.so'
steve at holdenweb.com
Mon Apr 7 04:54:22 CEST 2008
Fredrik Lundh wrote:
> Steve Holden wrote:
>>> 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?
>> I wouldn't claim to be an Ubuntu guru but it seems as though the Ubuntu
>> team decide that you would be able to import extension module YYY either
>> from YYY.so or from YYYmodule.so. IF you are asking *why* then I'd have
>> to answer that I have no idea at all.
> oh, the ".so" and "module.so" is standard Python behaviour (see my first
> post in this thread). what I cannot figure out is how "llothar" has
> managed to get setup.py to build extensions that an Ubuntu Python cannot
> load, without noticing.
Well, at least *I* learned something in this thread. I had missed that
second paragraph in your first post, and hadn't realised it from other
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list