def install_repo(path):
"""
Install the given repo
:param repo: repository path
"""
logger.info("Installing repo: %s", path)
cmd = "cd %s;make requirements;python setup.py install" % path
try:
status, output = commands.getstatusoutput(cmd)
logger.debug("%s", output)
if status != 0:
logger.error("Error while installing: %s\n%s",
path.split('/')[-1], status)
sys.exit(1)
except Exception, error:
logger.error("Failed with exception during installing %s\n%s",
path.split('/')[-1], error)
sys.exit(1)
评论列表
文章目录