
On Tue, Apr 29, 2008 at 11:24:56AM -0500, Charles R Harris wrote:
Hmm, something must be mucking with the sources. You can run conv_template on the pure file from the src directory with
python ../../distutils/conv_template.py scalartypes.inc.src
However, when called from within python the routine also processes the include files and I suspect that may be the problem. Try going into distutils/conv_template and find the line
include_src_re = re.compile(r"(\n|\A)#include\s*['\"]" r"(?P<name>[\w\d./\\]+[.]src)['\"]", re.I)
and replace it with
include_src_re = re.compile(r"(\n|\A)\s*#include\s*['\"]" r"(?P<name>[\w\d./\\]+[.]src)['\"]", re.I)
Which should knock off any whitespace before #include. This is not a fix, but it might help us find the problem.
Humm. I couldn't see any difference in the behavior. Is there something that I should be looking for? Glen