diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:56:15 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:56:15 +0000 |
commit | b3f8643a8929d6a75bfcbdf06791e3d3a116a338 (patch) | |
tree | d902522b6f62da7e6c94dd06f9169d249c0d1a13 /numpy/distutils/command/build_ext.py | |
parent | 271cfcfaa6ffaeea21aa5ea3bc3673f56886e3d1 (diff) | |
download | numpy-b3f8643a8929d6a75bfcbdf06791e3d3a116a338.tar.gz |
Fix print/repr/raise python3 incompatibilities in system_info and build_ext command.
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r-- | numpy/distutils/command/build_ext.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py index be036ace4..840d43716 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -101,7 +101,7 @@ class build_ext (old_build_ext): if libname in clibs and clibs[libname] != build_info: log.warn('library %r defined more than once,'\ ' overwriting build_info\n%s... \nwith\n%s...' \ - % (libname, `clibs[libname]`[:300], `build_info`[:300])) + % (libname, repr(clibs[libname])[:300], repr(build_info)[:300])) clibs[libname] = build_info # .. and distribution libraries: for libname,build_info in self.distribution.libraries or []: @@ -303,11 +303,11 @@ class build_ext (old_build_ext): # check for the availability of required compilers if cxx_sources and cxx_compiler is None: - raise DistutilsError, "extension %r has C++ sources" \ - "but no C++ compiler found" % (ext.name) + raise DistutilsError("extension %r has C++ sources" \ + "but no C++ compiler found" % (ext.name)) if (f_sources or fmodule_sources) and fcompiler is None: - raise DistutilsError, "extension %r has Fortran sources " \ - "but no Fortran compiler found" % (ext.name) + raise DistutilsError("extension %r has Fortran sources " \ + "but no Fortran compiler found" % (ext.name)) if ext.language in ['f77','f90'] and fcompiler is None: self.warn("extension %r has Fortran libraries " \ "but no Fortran linker found, using default linker" % (ext.name)) |