StanfordAHA / CGRAFlow

Integration test for entire CGRA flow
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Add repo_manager.py script #63

Closed leonardt closed 6 years ago

leonardt commented 6 years ago

This script augments the current logic in install.sh to manage the repositories for dependencies. This basically mimics the previous interface where we could set the branch and remote for a repository, but now enhances local development with the ability to check out specific branches of dependent repositories.

For example, to locally checkout the dev branches for coreir/pycoreir, I can do

python scripts/repo_manager.py --coreir dev --pycoreir dev

The script handles initializing (cloning) repositories, checking out refs, and installation (so when you checkout a new ref, it recompiles/reinstalls the software).

Suggestions on how to improve the script interface/internals are welcome, but more importantly, does anyone object to migrating this logic to a Python script?