Skip to content

Commit 7e6125a

Browse files
jbrockmendeljreback
authored andcommitted
BLD: add check to prevent tempita name error, clsoes #28836 (#30498)
1 parent 8fecad2 commit 7e6125a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ def maybe_cythonize(extensions, *args, **kwargs):
504504
# See https://github.com/cython/cython/issues/1495
505505
return extensions
506506

507+
elif not cython:
508+
# GH#28836 raise a helfpul error message
509+
raise RuntimeError("Cannot cythonize without Cython installed.")
510+
507511
numpy_incl = pkg_resources.resource_filename("numpy", "core/include")
508512
# TODO: Is this really necessary here?
509513
for ext in extensions:

0 commit comments

Comments
 (0)