We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384f30e commit dc1af56Copy full SHA for dc1af56
1 file changed
setup.py
@@ -5,11 +5,17 @@
5
import sys
6
7
import numpy as np
8
-from Cython.Build import cythonize
+try:
9
+ from Cython.Build import cythonize
10
+except ImportError:
11
+ cythonize = None
12
from setuptools import setup, find_packages, Extension
13
14
with_cython = False
15
if '--with-cython' in sys.argv:
16
+ if not cythonize:
17
+ print("Cython not found, please run `pip install Cython`")
18
+ exit(1)
19
with_cython = True
20
sys.argv.remove('--with-cython')
21
0 commit comments