[Numpy-svn] r3747 - trunk/numpy/distutils/command
numpy-svn at scipy.org
numpy-svn at scipy.org
Fri May 11 09:37:36 EDT 2007
Author: pearu
Date: 2007-05-11 08:37:31 -0500 (Fri, 11 May 2007)
New Revision: 3747
Modified:
trunk/numpy/distutils/command/build_src.py
Log:
Raise exception when pyrex is required.
Modified: trunk/numpy/distutils/command/build_src.py
===================================================================
--- trunk/numpy/distutils/command/build_src.py 2007-05-11 12:58:31 UTC (rev 3746)
+++ trunk/numpy/distutils/command/build_src.py 2007-05-11 13:37:31 UTC (rev 3747)
@@ -363,10 +363,14 @@
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)
More information about the Numpy-svn
mailing list