setup.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:core 作者: cherab 项目源码 文件源码
def add_extensions(setup_path, folder, extensions):
    """
    Adds .pyx files in the specified folder to the list of extensions.
    """
    source_path = path.join(setup_path, folder)
    for root, dirs, files in os.walk(source_path):
        for file in files:
            if path.splitext(file)[1] == ".pyx":
                pyx_file = path.relpath(path.join(root, file), setup_path)
                module = path.splitext(pyx_file)[0].replace("/", ".")
                extensions.append(Extension(module, [pyx_file], include_dirs=compilation_includes),)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号