Separated getting version from writing it to the version.py file in setup.py. Pre-installation case can call it directly without saving file.