Closed
Description
Hi!
Thanks for sharing wile with the community as software libre!
I see the benefit of using setuptools_scm, but the way it's used right now breaks use from a tarball download, see:
# tar xf /usr/portage/distfiles/wile-0.3.1.tar.gz
# cd wile-0.3.1/
# /usr/bin/python2.7 setup.py build
Traceback (most recent call last):
File "setup.py", line 42, in <module>
'Topic :: Utilities',
File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
_Distribution.__init__(self, attrs)
File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 387, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib64/python2.7/site-packages/setuptools_scm/integration.py", line 19, in version_keyword
dist.metadata.version = get_version(**value)
File "/usr/lib64/python2.7/site-packages/setuptools_scm/__init__.py", line 117, in get_version
parsed_version = _do_parse(root, parse)
File "/usr/lib64/python2.7/site-packages/setuptools_scm/__init__.py", line 95, in _do_parse
"use git+https://github.com/user/proj.git#egg=proj" % root)
LookupError: setuptools-scm was unable to detect version for '/tmp/tmp.oaFk0wuGv0/wile-0.3.1'.
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
Please consider git-am
'ing this patch of mine for a fix. It works well over here, preserves the feature for ./setup.py sdist
and heals tarball support.
Thanks and best
Sebastian
Metadata
Metadata
Assignees
Labels
No labels