mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 08:16:02 +08:00
setup: Fix Cython build.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user