setup: Fix Cython build.

This commit is contained in:
Stefan van der Walt
2009-11-12 14:21:36 +02:00
parent 1b501c83e1
commit 9d64d8d0dc
+1 -1
View File
@@ -29,7 +29,7 @@ def cython(pyx_files, working_path=''):
status = os.system(cmd)
# if the resulting file is small, cython compilation failed
if status != 0 or os.path.getsize(c_file_new):
if status != 0 or os.path.getsize(c_file_new) < 100:
print "Cython compilation of %s failed. Falling back " \
"on pre-generated file." % os.path.basename(pyxfile)
continue