Tarek Ziadé <[email protected]> added the comment:
I couldn't reproduce the problem yet, using your sample.
I tried to compile on Mac OSX (Python 2.5 GCC) and Windows XP (Python
2.5 , MinGW 5.1.4 and SWIG 1.2.3) and it worked well.
The output was right, (the .o file has a space, but the pyd/so files
come out properly), and I could use the gcd() function without any problem.
The call to the compiler quotes the c file correctly:
...
c:\Program Files\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-Ic:\Python25\include -Ic:\Python25\PC -c "ex ample.c" -o
"build\temp.win32-2.5\Release\ex ample.o"
...
This is done automatically with distutils.spawn._nt_quote_args under
Windows for instance. And this is basically what your patch is doing.
When does it crash exactly for you ? Do you have a traceback ?
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4508>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com