From 2c4ccc9942a2ad78b5a0214cdc693dd05aff67e3 Mon Sep 17 00:00:00 2001 From: tomkcpr Date: Mon, 10 Oct 2022 13:24:02 -0400 Subject: [PATCH] Update setup.py Testing on a RHEL 6.10 derivative using Python 2.6.6, that re.match didn't result in a version being detected. This fix extracted the correct version. Appears same change would be needed in rtslib-fb and targetcli-fb as well I believe. Don't have an opportunity to try this on a RHEL 7 though so not 100% if this would cover that version. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 502f195..43592df 100755 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ with open(init_file_path) as f: for line in f: match = re.match(r"__version__.*'([0-9.]+)'", line) + match = re.match(r"__version__.*'([0-9]+\.[0-9]+\.[0-9]+.*\.[a-z].*)'", line) if match: version = match.group(1) break