summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2016-03-14 15:43:25 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2016-03-14 15:43:25 +0100
commit1bd11bc619a701c2baa2f39f193659bdd3e3e4e1 (patch)
tree76b0d7061ac9b2a64e21e329751efb548602a00e
parente8ef5cdc9749814643f8a02fab8f2939b6774ffd (diff)
downloadsetuptools-scm-1bd11bc619a701c2baa2f39f193659bdd3e3e4e1.tar.gz
Improve error message, third take
Turns out there are much more scenarios other than GitHub tarballs where setuptools-scm fails: Nix is able to build from a git commit, but will delete the `.git` folder.
-rw-r--r--setuptools_scm/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools_scm/__init__.py b/setuptools_scm/__init__.py
index 002a1f8..c17ba90 100644
--- a/setuptools_scm/__init__.py
+++ b/setuptools_scm/__init__.py
@@ -73,9 +73,11 @@ def _do_parse(root, parse):
raise LookupError(
"setuptools-scm was unable to detect version for %r.\n\n"
- "Make sure you're not using GitHub's tarballs (or similar ones), as "
- "those don't contain the necessary metadata. Use PyPI's tarballs "
- "instead.\n\nFor example, if you're using pip, instead of "
+ "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.\n\n"
+ "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" % root)