[issue4672] Distutils SWIG support blocks use of SWIG -outdir option
William Fulton
report at bugs.python.org
Sat Jan 24 02:10:13 CET 2009
William Fulton <wsf at fultondesigns.co.uk> added the comment:
This error can be replicated on the command line with suitable quoting
of the -outdir option:
swig -c++ "-outdir ."
You need to pass the options correctly by separating them out, so use:
swig_opts=['-c++', '-I at HEPMCINCPATH@', '-outdir', '.']
I suggest distutils is fixed to show the quotes it is effectively adding
when displaying the command, so for the example Andy gave it should display:
swigging ./hepmc.i to ./hepmc_wrap.cpp
swig -python -c++ -I/home/andy/heplocal/include "-outdir ." -o
./hepmc_wrap.cpp ./hepmc.i
The quotes would need adding for display when a user has a space in any
of the options passed to SWIG (including the include_dirs etc).
----------
nosy: +postofficered
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4672>
_______________________________________
More information about the Python-bugs-list
mailing list