Re: [Tutor] Converting .pyd to .so

2011-02-28 Thread Alan Gauld
"j ram" wrote The DLL wraps a device driver, and the library of the SWIG wrapped device driver calls is invoked from a Python app. I was trying to find how this device driver (DLL) could be used on Linux without having to re-write the whole driver code for Linux. In general you can't use a

Re: [Tutor] Converting .pyd to .so

2011-02-28 Thread Stefan Behnel
j ram, 28.02.2011 18:49: Wine is a good suggestion, but it takes up 3.53 MB. Is there a lighter alternative? So far, you didn't state whether the DLL actually uses Windows calls, but I would imagine it does, and if so, you can't use it on anything but Windows without emulating those calls, thus

Re: [Tutor] Converting .pyd to .so

2011-02-28 Thread j ram
> Wine is a good suggestion, but it takes up 3.53 MB. Is there a lighter >> alternative? >> > > So far, you didn't state whether the DLL actually uses Windows calls, but I > would imagine it does, and if so, you can't use it on anything but Windows > without emulating those calls, thus using Wine.

Re: [Tutor] Converting .pyd to .so

2011-02-27 Thread Stefan Behnel
fall colors, 28.02.2011 03:25: > Stefan Behnel wrote: Well, there's Wine, a free implementation of Windows for Unix systems. You can either try to load the DLL using Wine and ctypes (I suspect that's the hard way), or just run the Windows Python distribution through Wine and load the wrapper .pyd

Re: [Tutor] Converting .pyd to .so

2011-02-27 Thread fall colors
> Well, there's Wine, a free implementation of Windows for Unix systems. You > can either try to load the DLL using Wine and ctypes (I suspect that's the > hard way), or just run the Windows Python distribution through Wine and load > the wrapper .pyd into that. I assume the DLL is only available

Re: [Tutor] Converting .pyd to .so

2011-02-27 Thread Stefan Behnel
fall colors, 27.02.2011 20:27: I was wondering if it would be possible to convert a .pyd file that works on Windows into a .so file that works on Linux? I gather that it might not be possible to convert the .pyd file if the underlying DLL file was built with Windows API calls (Swig was used to w

[Tutor] Converting .pyd to .so

2011-02-27 Thread fall colors
Hello, I was wondering if it would be possible to convert a .pyd file that works on Windows into a .so file that works on Linux? I gather that it might not be possible to convert the .pyd file if the underlying DLL file was built with Windows API calls (Swig was used to wrap up the DLL into a pyd