We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d00f2a commit 45f1bb3Copy full SHA for 45f1bb3
1 file changed
setup.py
@@ -3,12 +3,20 @@
3
from setuptools import dist, setup, find_packages
4
from setuptools.extension import Extension
5
6
-from Cython.Build import cythonize
+try:
7
+ from Cython.Build import cythonize
8
+except ImportError:
9
+ dist.Distribution().fetch_build_eggs(["cython"])
10
11
import Cython.Compiler.Options
12
13
Cython.Compiler.Options.annotate = True
14
-import numpy as np
15
16
+ import numpy as np
17
18
+ dist.Distribution().fetch_build_eggs(["numpy"])
19
20
21
# fmt: off
22
cython_modules = [
@@ -45,4 +53,8 @@
45
53
packages=packages,
46
54
ext_modules=cythonize(extensions, annotate=True, nthreads=nthreads),
47
55
include_dirs=[np.get_include()],
56
+ setup_requires=[
57
+ "cython",
58
+ "numpy",
59
+ ],
48
60
)
0 commit comments