Warn user when Cython can't be imported

This commit is contained in:
James Turner
2011-07-15 17:22:17 -04:00
committed by Stefan van der Walt
parent 56fe676c66
commit f049cfc12a
+2 -1
View File
@@ -19,7 +19,8 @@ def cython(pyx_files, working_path=''):
except ImportError:
# If cython is not found, we do nothing -- the build will make use of
# the distributed .c files
pass
print("Cython not found; falling back to pre-built %s" \
% " ".join([f.replace('.pyx', '.c') for f in pyx_files]))
else:
for pyxfile in [os.path.join(working_path, f) for f in pyx_files]:
# make a backup of the good c files