If there is no git executable in the PATH of the installing shell, the setup will fail because the setup.py write_version function will raise a FileNotFoundError exception.
git
PATH
setup.py
write_version
FileNotFoundError
Fix this by catching the exception.