+ #info_file = "./distrib/swig_info"
+ #info_dict = { 'cmd' : swig_cmd,
+ # 'args' : swig_args + ['-I'+dir]
+ # }
+ #open(info_file, "w").write(str(args_dict))
+
+ # First run swig to produce the XML file, adding
+ # an extra -D that prevents the old rename
+ # directives from being used
+ cmd = [ swig_cmd ] + swig_args + \
+ [ '-DBUILDING_RENAMERS', '-xmlout', xml_file ] + \
+ ['-I'+dir, '-o', cpp_file, i_file]
+ msg(' '.join(cmd))
+ spawn(cmd)
+
+ # Next run build_renamers to process the XML