Any reason not to do this pip install only when the git checkout changes?