def run(self):
venv = "<STR_LIT>"<EOL>if self.python:<EOL><INDENT>venv += "<STR_LIT>"<EOL><DEDENT>pip = "<STR_LIT>" if self.requirements else None<EOL>args = self.name, self.python, self.requirements<EOL>try:<EOL><INDENT>check_call(venv.format(*args).split())<EOL>if pip:<EOL><INDENT>log.info("<STR_LIT>")<EOL>check_call(pip.format(*args).split())<EOL><DEDENT><DEDENT>except CalledProcessError:<EOL><INDENT>raise SystemExit(<NUM_LIT:1>)<EOL><DEDENT>return<EOL>
Execute the command.