def _build_import_library_x86():
lib_name = "<STR_LIT>" % tuple(sys.version_info[:<NUM_LIT:2>])<EOL>lib_file = os.path.join(sys.prefix, '<STR_LIT>', lib_name)<EOL>out_name = "<STR_LIT>" % tuple(sys.version_info[:<NUM_LIT:2>])<EOL>out_file = os.path.join(sys.prefix, '<STR_LIT>', out_name)<EOL>if not os.path.isfile(lib_file):<EOL><INDENT>log.warn('<STR_LIT>' % (lib_file))<EOL>return<EOL><DEDENT>if os.path.isfile(out_file):<EOL><INDENT>log.debug('<STR_LIT>' % (out_file))<EOL>return<EOL><DEDENT>log.info('<STR_LIT>' % (out_file))<EOL>from numpy.distutils import lib2def<EOL>def_name = "<STR_LIT>" % tuple(sys.version_info[:<NUM_LIT:2>])<EOL>def_file = os.path.join(sys.prefix, '<STR_LIT>', def_name)<EOL>nm_cmd = '<STR_LIT>' % (lib2def.DEFAULT_NM, lib_file)<EOL>nm_output = lib2def.getnm(nm_cmd)<EOL>dlist, flist = lib2def.parse_nm(nm_output)<EOL>lib2def.output_def(dlist, flist, lib2def.DEF_HEADER, open(def_file, '<STR_LIT:w>'))<EOL>dll_name = "<STR_LIT>" % tuple(sys.version_info[:<NUM_LIT:2>])<EOL>args = (dll_name, def_file, out_file)<EOL>cmd = '<STR_LIT>' % args<EOL>status = os.system(cmd)<EOL>if status:<EOL><INDENT>log.warn('<STR_LIT>')<EOL><DEDENT>return<EOL>
Build the import libraries for Mingw32-gcc on Windows