From bdfdcfac8210c4bd2a3174c54abee64ebe03f4d7 Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Fri, 27 Dec 2019 06:41:04 -0800 Subject: [PATCH] BLD: add check to prevent tempita name error, clsoes #28836 (#30498) --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index d0b077ea8abe67..af70ee3b30095b 100755 --- a/setup.py +++ b/setup.py @@ -504,6 +504,10 @@ def maybe_cythonize(extensions, *args, **kwargs): # See https://github.com/cython/cython/issues/1495 return extensions + elif not cython: + # GH#28836 raise a helfpul error message + raise RuntimeError("Cannot cythonize without Cython installed.") + numpy_incl = pkg_resources.resource_filename("numpy", "core/include") # TODO: Is this really necessary here? for ext in extensions: