From 1b501c83e13166462d648f3a1be4f5eea7c279a4 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 12 Nov 2009 14:11:51 +0200 Subject: [PATCH] setup: Only check for new Cython file if Cython executed successfully. --- scikits/image/_build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scikits/image/_build.py b/scikits/image/_build.py index d03fccd4..45100833 100644 --- a/scikits/image/_build.py +++ b/scikits/image/_build.py @@ -29,8 +29,7 @@ def cython(pyx_files, working_path=''): status = os.system(cmd) # if the resulting file is small, cython compilation failed - size = os.path.getsize(c_file_new) - if status != 0 or (size < 100): + if status != 0 or os.path.getsize(c_file_new): print "Cython compilation of %s failed. Falling back " \ "on pre-generated file." % os.path.basename(pyxfile) continue