Problem using pexports & Cygwin to build Python 2.2 extension modules
Anton Vredegoor
anton at vredegoor.doge.nl
Mon Mar 18 05:57:14 EST 2002
On Sun, 17 Mar 2002 15:21:19 GMT, "Les Button" <lbut at stny.rr.com>
wrote:
>Has anyone else had success building an extension module with Windows
>Python 2.2 and Cygwin/gcc?
Yes, I can build extensions for python 2.2 on windows 98 SE using
cygwin.
>P.S. I also had a problem with "Python.h" needing to have definitions of
>SIZEOF_INT
>and SIZEOF_LONG; these apparently didn't get defined properly (for
>Cygwin/gcc)
>in "pyconfig.h"?? I fixed for now by providing #define's for these two,
>before the
>#include "Python.h" -- I don't see why this should be related to the linker
>failure.
Probably you should reverse these changes for the solution below to
work.
>$ python setup.py build --compiler=cygwin
try:
setup.py build --compiler=mingw32
Good luck,
Anton.
More information about the Python-list
mailing list