代码拉取完成,页面将自动刷新
from distutils.core import setup,Extension
import numpy
from Cython.Build import cythonize
from Cython.Compiler.Options import _directive_defaults
_directive_defaults['linetrace'] = True
_directive_defaults['binding'] = True
extensions = [Extension("factor_graph", ["graph_learning/cython/factor_graph.pyx"],include_dirs = [numpy.get_include()],
# libraries=["m"],
# extra_compile_args = ["-O3", "-ffast-math", "-march=native", ],
language='c',
define_macros=[('CYTHON_TRACE', '1')]
),
Extension("open_crf",['graph_learning/cython/open_crf.pyx'], include_dirs = [numpy.get_include()],
# extra_compile_args=["-fPIC", "-O3"],
# extra_link_args=["-fPIC", "-O3"],
# libraries=["m"],
# extra_compile_args = ["-O3", "-ffast-math", "-march=native", ],
language='c',
define_macros=[('CYTHON_TRACE', '1')]
),
]
setup(
name = 'open_crf cython',
package_data = {
'graph_learning/cython': ['*.pxd'],
},
ext_modules=cythonize(extensions,include_path=[numpy.get_include()],)
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。