remove git repos from requirements.txt and add one place to set them up

This commit is contained in:
j 2016-02-20 13:19:06 +05:30
commit 970f3f605d
5 changed files with 30 additions and 14 deletions

View file

@ -211,10 +211,11 @@ if __name__ == "__main__":
pandora_new_revno = revno
else:
os.chdir(os.path.dirname(path))
cmd = ['git', 'clone', '--depth', '1', repos[repo]['url']]
run(*cmd)
if 'revision' in repos[repo]:
run('git', 'clone', repos[repo]['url'])
run_git(path, 'checkout', repos[repo]['commit'])
else:
run('git', 'clone', '--depth', '1', repos[repo]['url'])
setup = os.path.join(base, repos[repo]['path'], 'setup.py')
if repo in ('python-ox', 'oxtimelines') and os.path.exists(setup):
os.chdir(os.path.dirname(setup))