File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88 HAVE_CYTHON = True
99except ImportError as e :
1010 warnings .warn (e .args [0 ])
11+ cythonize = lambda ext : ext
1112 from setuptools import setup , Extension
1213 from setuptools .command .build_ext import build_ext
1314 HAVE_CYTHON = False
@@ -42,6 +43,7 @@ def run(self):
4243 sources = ['hdbscan/dist_metrics.pyx' ])
4344
4445
46+
4547def readme ():
4648 with open ('README.rst' ) as readme_file :
4749 return readme_file .read ()
@@ -78,12 +80,13 @@ def requirements():
7880 'license' : 'BSD' ,
7981 'packages' : ['hdbscan' , 'hdbscan.tests' ],
8082 'install_requires' : requirements (),
81- 'ext_modules' : [_hdbscan_tree ,
83+ 'ext_modules' : cythonize ([
84+ _hdbscan_tree ,
8285 _hdbscan_linkage ,
8386 _hdbscan_boruvka ,
8487 _hdbscan_reachability ,
8588 _prediction_utils ,
86- dist_metrics ],
89+ dist_metrics ]) ,
8790 'cmdclass' : {'build_ext' : CustomBuildExtCommand },
8891 'test_suite' : 'nose.collector' ,
8992 'tests_require' : ['nose' ],
You can’t perform that action at this time.
0 commit comments