@@ -101,7 +101,7 @@ def run(self):
101101 if libname in clibs and clibs [libname ] != build_info :
102102 log .warn ('library %r defined more than once,' \
103103 ' overwriting build_info\n %s... \n with\n %s...' \
104- % (libname , ` clibs[libname]` [:300 ], ` build_info` [:300 ]))
104+ % (libname , repr ( clibs [libname ]) [:300 ], repr ( build_info ) [:300 ]))
105105 clibs [libname ] = build_info
106106 # .. and distribution libraries:
107107 for libname ,build_info in self .distribution .libraries or []:
@@ -303,11 +303,11 @@ def build_extension(self, ext):
303303
304304 # check for the availability of required compilers
305305 if cxx_sources and cxx_compiler is None :
306- raise DistutilsError , "extension %r has C++ sources" \
307- "but no C++ compiler found" % (ext .name )
306+ raise DistutilsError ( "extension %r has C++ sources" \
307+ "but no C++ compiler found" % (ext .name ))
308308 if (f_sources or fmodule_sources ) and fcompiler is None :
309- raise DistutilsError , "extension %r has Fortran sources " \
310- "but no Fortran compiler found" % (ext .name )
309+ raise DistutilsError ( "extension %r has Fortran sources " \
310+ "but no Fortran compiler found" % (ext .name ))
311311 if ext .language in ['f77' ,'f90' ] and fcompiler is None :
312312 self .warn ("extension %r has Fortran libraries " \
313313 "but no Fortran linker found, using default linker" % (ext .name ))
0 commit comments