setupbase.py 文件源码

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

项目:mimerender-cookiecutter 作者: jupyterlab 项目源码 文件源码
def create_cmdclass(wrappers=None):
    """Create a command class with the given optional wrappers.

    Parameters
    ----------
    wrappers: list(str), optional
        The cmdclass names to run before running other commands
    """
    egg = bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled
    wrappers = wrappers or []
    wrapper = functools.partial(wrap_command, wrappers)
    cmdclass = dict(
        build_py=wrapper(build_py, strict=is_repo),
        sdist=wrapper(sdist, strict=True),
        bdist_egg=egg,
        develop=wrapper(develop, strict=True)
    )
    if bdist_wheel:
        cmdclass['bdist_wheel'] = wrapper(bdist_wheel, strict=True)
    return cmdclass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号