extensions = [Extension(name="xxx",
sources=
['xxx.pyx',
'/home/sample/c001.c',
...
'/home/sample/c100.c',
],
language='c',
extra_compile_args = ['-std=gnu11'],
extra_link_args=['-std=gnu11'],
)]
setup(
cmdclass={'build_ext': build_ext},
ext_modules=cythonize(extensions)
)
问题>是否有一种语法可用于在给定目录中包含所有源文件?
谢谢