python setup.py如何将所有源文件添加到编译中?

时间:2017-05-18 19:42:57

标签: python cython

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)
)

问题>是否有一种语法可用于在给定目录中包含所有源文件?

谢谢

0 个答案:

没有答案