mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 04:47:34 +08:00
Warn user when Cython can't be imported
This commit is contained in:
committed by
Stefan van der Walt
parent
56fe676c66
commit
f049cfc12a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user