Merge pull request #3054 from rgriebl/master

Fix python version detection on Debian testing/unstable
This commit is contained in:
Gina Häußge authored and GitHub committed 2019-02-18 10:46:56 +01:00
commit 980616519d
1 file changed
+4
+4
View File
@@ -121,6 +121,10 @@ def get_comparable_version(version_string, base=False):
if "-" in version_string:
version_string = version_string[:version_string.find("-")]
# Debian has the python version set to 2.7.15+ which is not PEP440 compliant (bug 914072)
if version_string.endswith("+"):
version_string = version_string[:-1]
version = pkg_resources.parse_version(version_string)
# A leading v is common in github release tags and old setuptools doesn't remove it.