Vyper: Vyper can't be installed from the tarball release

Created on 30 Oct 2019  路  2Comments  路  Source: vyperlang/vyper

Version Information

  • vyper Version (output of vyper --version): 0.1.0-beta.13
  • OS: linux
  • Python Version (output of python --version): 3.7.4

What's your issue about?

Downloaded 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.

How can it be fixed?

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).

bug

Most helpful comment

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.

All 2 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pipermerriam picture pipermerriam  路  3Comments

michwill picture michwill  路  3Comments

jacqueswww picture jacqueswww  路  3Comments

domrany64 picture domrany64  路  3Comments

fubuloubu picture fubuloubu  路  3Comments