vyper --version): 0.1.0-beta.13python --version): 3.7.4Downloaded the tarball from the github releases page, and tried to install with any of the various tools (pip, setuptools, etc).
There is a line early in the output:
fatal: not a git repository (or any of the parent directories): .git
but installation continues (this is due to an error not being handled in setup.py).
Finally, installation fails with:
error: can't copy 'vyper/vyper_git_version.txt': doesn't exist or not a regular file.
This is because the original git command failed.
Remove the code in setup.py that runs git in a subprocess and fails to handle the error, or keep the vyper_git_version.txt in source control (not in .gitignore).
If we add vyper_git_version.txt to source control, it will change the commit hash to something other than the contents of that file. Sort of a chicken-egg issue.
The correct resolution to this issue would be to build anyways despite the error, then note that the hash is unknown in this scenario.
One could just download tarball from pypi as well ? https://pypi.org/project/vyper/0.1.0b13/#files This is an unfortunate side-effect of us choosing to produce a git # on --version I think it's an ok trade off?
Most helpful comment
If we add
vyper_git_version.txtto source control, it will change the commit hash to something other than the contents of that file. Sort of a chicken-egg issue.The correct resolution to this issue would be to build anyways despite the error, then note that the hash is unknown in this scenario.