instant team mailing list archive
-
instant team
-
Mailing list archive
-
Message #00392
Windows problem
Hi,
I have a problem when running some PyDOLFIN tests on Windows:
[snip]
RuntimeError: In instant.recompile: The module did not compile, see
'c:\docume~1\fenics~1\locals~1\temp\tmpwjyrxt2009-3-12-09-33_instant\form_b76a58d1149728584878f64b9d080412d3223f47\compile.log'
Looking at compile.log reveals that it cannot find swig\ufc.i:
form_b76a58d1149728584878f64b9d080412d3223f47.i(29): Error: Unable to find
'swig\ufc.i'
The problem seems to be how swig_cmd is defined in setup.py in the same
folder:
swig_cmd = 'swig -python -Ic:\fenicsslave\local\include -c++ ...'
When the string swig_cmd is sent to os.system in the next step (in
setup.py) the command actually becomes
swig -python -Ic:fenicsslavelocalinclude -c++ ...
which obviously do not work.
I'm not sure if this should be fixed in Instant or in FFC but I suggest to
make swig_cmd a raw string by prefixing it with 'r', that is in
src/instant/codegeneration.py:
- swig_cmd ='swig -python %s %s %s'
+ swig_cmd = r'swig -python %s %s %s'
Johannes
Follow ups