I don't understand your comment.  In this PR, the release version number (e.g., `0.3.1`) is now carried in `setup.py` and written to `version.py` upon install/upgrade.  The code you reference just reads it back in.