File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 6
6
import warnings
7
7
8
8
from setuptools import setup , Extension
9
- from setuptools .dist import Distribution
9
+
10
+ import numpy
10
11
11
12
platform_supported = False
12
13
56
57
if not platform_supported :
57
58
raise NotImplementedError (sys .platform )
58
59
59
- try :
60
- from Cython .Distutils import build_ext as cython_build_ext
61
- has_cython = True
62
- except ImportError :
63
- has_cython = False
64
-
65
60
for path in library_dirs :
66
61
try :
67
62
files = os .listdir (path )
72
67
else :
73
68
warnings .warn ('Cannot find ta-lib library, installation may fail.' )
74
69
75
-
76
- import numpy
77
-
78
70
# Get the Cython build_ext or fall back to setuptools build_ext
79
- if has_cython :
71
+ try :
80
72
from Cython .Distutils import build_ext
81
- else :
73
+ has_cython = True
74
+ except ImportError :
82
75
from setuptools .command .build_ext import build_ext
76
+ has_cython = False
83
77
84
78
class NumpyBuildExt (build_ext ):
85
79
"""
You can’t perform that action at this time.
0 commit comments