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 66import warnings
77
88from setuptools import setup , Extension
9- from setuptools .dist import Distribution
9+
10+ import numpy
1011
1112platform_supported = False
1213
5657if not platform_supported :
5758 raise NotImplementedError (sys .platform )
5859
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-
6560for path in library_dirs :
6661 try :
6762 files = os .listdir (path )
7267else :
7368 warnings .warn ('Cannot find ta-lib library, installation may fail.' )
7469
75-
76- import numpy
77-
7870# Get the Cython build_ext or fall back to setuptools build_ext
79- if has_cython :
71+ try :
8072 from Cython .Distutils import build_ext
81- else :
73+ has_cython = True
74+ except ImportError :
8275 from setuptools .command .build_ext import build_ext
76+ has_cython = False
8377
8478class NumpyBuildExt (build_ext ):
8579 """
You can’t perform that action at this time.
0 commit comments