PhIMaL / DeePyMoD

https://phimal.github.io/DeePyMoD/
MIT License
44 stars 11 forks source link

Doesn't install when using zip #22

Closed georgestod closed 4 years ago

georgestod commented 4 years ago

tried to install DeePyMod from downloaded zip file and got the following error:

LookupError: setuptools-scm was unable to detect version for '/Users/gt/pCloud Drive/postdoc/DeePyMoD-master'.

GJBoth commented 4 years ago

It has something do with setuptools, its unable to find a version number if it doesnt have git.

GijsVermarien commented 4 years ago

I am afraid that this is expected behavior when installing via zip:

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

    For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
GJBoth commented 4 years ago

Alright, nothing to do about. Do make a note about it in the readme/installing and we can close this.