berkus / enso

Automatically exported from code.google.com/p/enso
Other
1 stars 0 forks source link

Compiled Win32 modules should have .pyd extension #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile win32 backend
2. Run with Python 2.5
3. Imports of compiled modules fail

Python v2.5 on Windows will no longer import modules with the .dll
extension - they need to have the .pyd extension instead.

Thankfully, SCons allows you to easily override the extension for the
output of SharedLibary, via SHLIBSUFFIX

At the moment, this is restricted to:
* the Swig helper script win32/SConsTools/SwigTool.py
* the Cairo build script win32/src/Graphics/cairo/src/SConscript

Quote from Python.org:

Windows: .dll is no longer supported as a filename extension for extension
modules. .pyd is now the only filename extension that will be searched for. 

See: http://docs.python.org/whatsnew/ports.html#SECTION0001510000000000000000

Original issue reported on code.google.com by unfocu...@gmail.com on 22 Mar 2008 at 5:19

Attachments:

GoogleCodeExporter commented 9 years ago
Just changing those two files doesn't work for me. Are you sure those are the 
only
changes necessary to accomidate Python 2.5?

Original comment by zel...@gmail.com on 1 May 2008 at 11:00