Skip to content

Commit d198414

Browse files
authored
Merge pull request #236 from rgommers/cythonbuild
BLD: raise a RuntimeError if Cython should be installed but isn't.
2 parents d762428 + fdd81c0 commit d198414

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414

1515
try:
1616
from Cython.Build import cythonize
17+
USE_CYTHON = True
1718
except ImportError:
1819
USE_CYTHON = False
19-
else:
20-
USE_CYTHON = True
20+
if not os.path.exists(os.path.join('pywt', '_extensions', '_pywt.c')):
21+
msg = ("Cython must be installed when working with a development "
22+
"version of PyWavelets")
23+
raise RuntimeError(msg)
24+
2125

2226
MAJOR = 0
2327
MINOR = 5

0 commit comments

Comments
 (0)