File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 44from setuptools import setup , find_packages
55from setuptools .extension import Extension
66
7-
87USE_CYTHON = 'CYTHONIZE' in os .environ
98IS_PYPY = platform .python_implementation () == 'PyPy'
109ext = '.pyx' if USE_CYTHON else '.c'
1110try :
1211 import numpy as np
1312 include_dirs = [np .get_include ()]
1413except ImportError :
15- include_dirs = []
14+ print ('import error' )
15+
1616extensions = [
1717 Extension ("scrapely._htmlpage" ,
1818 ["scrapely/_htmlpage%s" % ext ],
19- include_dirs = include_dirs ),
19+ include_dirs = include_dirs ,
20+ extra_compile_args = [
21+ '-Wno-deprecated-declarations' ,
22+ '-Wno-int-conversion' ]),
2023 Extension ("scrapely.extraction._similarity" ,
2124 ["scrapely/extraction/_similarity%s" % ext ],
22- include_dirs = include_dirs ),
25+ include_dirs = include_dirs ,
26+ extra_compile_args = [
27+ '-Wno-deprecated-declarations' ,
28+ '-Wno-int-conversion' ]),
2329]
2430if USE_CYTHON and not IS_PYPY :
2531 from Cython .Build import cythonize
You can’t perform that action at this time.
0 commit comments