diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2023-03-26 16:12:24 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2023-03-26 16:12:24 +0200 |
commit | d35f44e2d3da16d756467e1b9dd4001cb1f60d44 (patch) | |
tree | 6c17b4f9854632949999cab9203d85f9f50ddcf5 | |
parent | da0c433cbb6e1ce74981484ff250d101a8078d51 (diff) | |
download | python-lxml-d35f44e2d3da16d756467e1b9dd4001cb1f60d44.tar.gz |
Try to fix libiconv version parsing in Windows build ("1.15-1" instead of plain "1.14").
-rw-r--r-- | buildlibxml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlibxml.py b/buildlibxml.py index 4d7295de..d98334e2 100644 --- a/buildlibxml.py +++ b/buildlibxml.py @@ -315,7 +315,7 @@ def find_max_version(libname, filenames, version_re=None): match = version_re.search(fn) if match: version_string = match.group(1) - versions.append((tuple(map(tryint, version_string.split('.'))), + versions.append((tuple(map(tryint, version_string.replace("-", ".-").split('.'))), version_string)) if not versions: raise Exception( |