diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-05-11 13:37:31 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-05-11 13:37:31 +0000 |
commit | d8d0b7aa7766029abacf6658d76d3a9666b5c9e5 (patch) | |
tree | 86bfa98e67d95fddb4832ccca826a56485d668d3 /numpy/distutils/command/build_src.py | |
parent | 2e72fd9a23f41d36a0288e1e70bf816dbda408ee (diff) | |
download | numpy-d8d0b7aa7766029abacf6658d76d3a9666b5c9e5.tar.gz |
Raise exception when pyrex is required.
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r-- | numpy/distutils/command/build_src.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py index 5e12f59f3..eb6bf4060 100644 --- a/numpy/distutils/command/build_src.py +++ b/numpy/distutils/command/build_src.py @@ -363,10 +363,14 @@ class build_src(build_ext.build_ext): if pyrex_result.num_errors != 0: raise RuntimeError("%d errors in Pyrex compile" % pyrex_result.num_errors) - else: + elif os.path.isfile(target_file): log.warn("Pyrex needed to compile %s but not available."\ " Using old target %s"\ % (source, target_file)) + else: + raise SystemError,"Non-existing target %r. "\ + "Perhaps you need to install Pyrex."\ + % (target_file) new_sources.append(target_file) else: new_sources.append(source) |