William Fulton <w...@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++', '-...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue4672> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com