[issue4508] distutils compiler not handling spaces in path to output/src files
Tarek Ziadé
report at bugs.python.org
Sun Jan 18 01:45:38 CET 2009
Tarek Ziadé <ziade.tarek at gmail.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue4508>
_______________________________________
More information about the Python-bugs-list
mailing list