Recognize git version from tarball name if everything else fails
This commit is contained in:
parent
3f66c7ceda
commit
aac661d292
@ -1170,7 +1170,8 @@ def versions_from_parentdir(parentdir_prefix, root, verbose):
|
|||||||
Source tarballs conventionally unpack into a directory that includes
|
Source tarballs conventionally unpack into a directory that includes
|
||||||
both the project name and a version string.
|
both the project name and a version string.
|
||||||
"""
|
"""
|
||||||
dirname = os.path.basename(root)
|
# -- (MESSMER) CHANGED FOLLOWING LINE TO LOOK IN ../.. instead of . --
|
||||||
|
dirname = os.path.basename(os.path.abspath(os.path.join(os.path.join(root, '..'), '..')))
|
||||||
if not dirname.startswith(parentdir_prefix):
|
if not dirname.startswith(parentdir_prefix):
|
||||||
if verbose:
|
if verbose:
|
||||||
print("guessing rootdir is '%s', but '%s' doesn't start with "
|
print("guessing rootdir is '%s', but '%s' doesn't start with "
|
||||||
|
Loading…
Reference in New Issue
Block a user