This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author postofficered
Recipients andybuckley, postofficered
Date 2009-01-24.01:10:10
SpamBayes Score 0.000462991
Marked as misclassified No
Message-id <1232759413.02.0.932875609132.issue4672@psf.upfronthosting.co.za>
In-reply-to
Content
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@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).
History
Date User Action Args
2009-01-24 01:10:13postofficeredsetrecipients: + postofficered, andybuckley
2009-01-24 01:10:13postofficeredsetmessageid: <1232759413.02.0.932875609132.issue4672@psf.upfronthosting.co.za>
2009-01-24 01:10:12postofficeredlinkissue4672 messages
2009-01-24 01:10:10postofficeredcreate