setupbase.py 文件源码

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

项目:mimerender-cookiecutter 作者: jupyterlab 项目源码 文件源码
def combine_commands(*commands):
    """Return a Command that combines several commands."""

    class CombinedCommand(Command):

        def initialize_options(self):
            self.commands = []
            for C in commands:
                self.commands.append(C(self.distribution))
            for c in self.commands:
                c.initialize_options()

        def finalize_options(self):
            for c in self.commands:
                c.finalize_options()

        def run(self):
            for c in self.commands:
                c.run()
    return CombinedCommand
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号