On 5 Apr., 15:48, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > llothar wrote: > > My question was: Why does setup.py generated sometimes a pyd and > > sometimes a so file? > > setup.py picks an extension that happens to work on the platform you're > running setup.py on. doing otherwise would be pretty pointless. > > </F>
Unfortunately as pointless as the answers i got so far. Okay i try it one more time: I ship an application that compiles an python interpreter and extension on a remote system. It also needs to copy this created items around. So if i use setup.py to create an extension i need to know the file name of the generated file. Damned this is trivial and a fundamental question and it is not documented anywhere. I have a clue at the moment that it might be ".so" when python is compiled without shared library and ".pyd" otherwise (configure option --enable-shared) . But this is just a guess. Does anybody know? And by the way: I think this is a bug and should be fixed. If the platform does allow renaming the extension of a DLL (does HP/UX allow this?) it should always be ".pyd" -- http://mail.python.org/mailman/listinfo/python-list