diff --git a/skimage/_build.py b/skimage/_build.py index 8f255f29..771b04b9 100644 --- a/skimage/_build.py +++ b/skimage/_build.py @@ -4,6 +4,13 @@ import hashlib import subprocess +# WindowsError is not defined on unix systems +try: + WindowsError +except NameError: + WindowsError = None + + def cython(pyx_files, working_path=''): """Use Cython to convert the given files to C.