setup.py 文件源码

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

项目:SuperOcto 作者: mcecchi 项目源码 文件源码
def get_cmdclass():
    cmdclass = versioneer.get_cmdclass()

    # add clean command
    cmdclass.update(dict(clean=octoprint_setuptools.CleanCommand.for_options(source_folder="src", eggs=["OctoPrint*.egg-info"])))

    # add translation commands
    translation_dir = "translations"
    pot_file = os.path.join(translation_dir, "messages.pot")
    bundled_dir = os.path.join("src", "octoprint", "translations")
    cmdclass.update(octoprint_setuptools.get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, pack_name_prefix="OctoPrint-i18n-", pack_path_prefix="", bundled_dir=bundled_dir))

    cmdclass["build_py"] = data_copy_build_py_factory({
        "octoprint/templates/_data": [
            "AUTHORS.md",
            "CHANGELOG.md",
            "SUPPORTERS.md",
            "THIRDPARTYLICENSES.md",
        ]
    }, cmdclass["build_py"] if "build_py" in cmdclass else _build_py)

    return cmdclass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号