def combine_commands(*commands):
class CombinedCommand(Command):<EOL><INDENT>user_options = []<EOL>def initialize_options(self):<EOL><INDENT>self.commands = []<EOL>for C in commands:<EOL><INDENT>self.commands.append(C(self.distribution))<EOL><DEDENT>for c in self.commands:<EOL><INDENT>c.initialize_options()<EOL><DEDENT><DEDENT>def finalize_options(self):<EOL><INDENT>for c in self.commands:<EOL><INDENT>c.finalize_options()<EOL><DEDENT><DEDENT>def run(self):<EOL><INDENT>for c in self.commands:<EOL><INDENT>c.run()<EOL><DEDENT><DEDENT><DEDENT>return CombinedCommand<EOL>
Return a Command that combines several commands.