diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:56:47 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:56:47 +0000 |
commit | cf934f7deed917eb6a8d7bc8e160207f69c481c4 (patch) | |
tree | 3ed5c7ef571441cc618c15472afbca4dd52e9354 /numpy/distutils/command/build_clib.py | |
parent | 2b2872b1fa4e81454835fd122bed02f931b73baf (diff) | |
download | numpy-cf934f7deed917eb6a8d7bc8e160207f69c481c4.tar.gz |
Make build_src and build_clib python3 importable.
Diffstat (limited to 'numpy/distutils/command/build_clib.py')
-rw-r--r-- | numpy/distutils/command/build_clib.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py index 88fa809c7..71ca1e096 100644 --- a/numpy/distutils/command/build_clib.py +++ b/numpy/distutils/command/build_clib.py @@ -125,10 +125,9 @@ class build_clib(old_build_clib): sources = build_info.get('sources') if sources is None or not is_sequence(sources): - raise DistutilsSetupError, \ - ("in 'libraries' option (library '%s'), " + + raise DistutilsSetupError(("in 'libraries' option (library '%s'), " + "'sources' must be present and must be " + - "a list of source filenames") % lib_name + "a list of source filenames") % lib_name) sources = list(sources) c_sources, cxx_sources, f_sources, fmodule_sources \ @@ -173,8 +172,8 @@ class build_clib(old_build_clib): # check availability of Fortran compilers if (f_sources or fmodule_sources) and fcompiler is None: - raise DistutilsError, "library %s has Fortran sources"\ - " but no Fortran compiler found" % (lib_name) + raise DistutilsError("library %s has Fortran sources"\ + " but no Fortran compiler found" % (lib_name)) macros = build_info.get('macros') include_dirs = build_info.get('include_dirs') |