From 68c2ab205e590cbd50a79dc09c1dee1c9a892334 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 3 Dec 2012 08:49:35 -0800 Subject: [PATCH] BUG: WindowsError not defined under Linux. --- skimage/_build.py | 7 +++++++ 1 file changed, 7 insertions(+) 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.