summaryrefslogtreecommitdiff
path: root/command/build_src.py
diff options
context:
space:
mode:
Diffstat (limited to 'command/build_src.py')
-rw-r--r--command/build_src.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/command/build_src.py b/command/build_src.py
index d697bdf16..3f534c825 100644
--- a/command/build_src.py
+++ b/command/build_src.py
@@ -356,10 +356,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)