Can Python-2.2 on Windows be Extended using the MingW C compiler?

John Machin sjmachin at lexicon.net
Tue Mar 18 07:18:21 EST 2003


John Stevens <john.stevens2 at hp.com> wrote in message news:<Xns93419595F8B27johnstevens2hpcom at 16.105.248.153>...
> I've written an extension module in C that compiles and works on
> Linux, and want to try to compile it and use it on Windows.
> 
> Does anybody know if you can take the standard Python Distribution
> for Windows, and extend it using a C module that was compiled using
> the free MingW C compiler?

1. RTFM

http://www.python.org/doc/current/inst/non-ms-compilers.html

2. s/python20/pythonxy/g where your current Python is version 2.x

3. If all of the mucking about to get a libpython2x.a seems too
daunting, e-mail me & I'll send you a copy (for 2.2).

4. Note that a pyd (DLL) must be used only with a Python.exe of the
same version; miscegenation in this case is undetectable by the
python.exe and is fatal.




More information about the Python-list mailing list