File match-python-version-if-minor.diff of Package rpm
From 54b5004cda39c2d1da78a0d8b8689cc6683bc9b6 Mon Sep 17 00:00:00 2001
From: Gordon Messmer <gordon.messmer@gmail.com>
Date: Sat, 23 Nov 2019 15:03:44 -0800
Subject: [PATCH] scripts/pythondistdeps: Match python version if minor has
multiple digits.
---
scripts/pythondistdeps.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- ./scripts/pythondistdeps.py
+++ ./scripts/pythondistdeps.py
@@ -116,7 +116,7 @@ for f in files:
# Try to parse the Python version from the path the metadata
# resides at (e.g. /usr/lib/pythonX.Y/site-packages/...)
import re
- res = re.search(r"/python(?P<pyver>\d+\.\d)/", path_item)
+ res = re.search(r"/python(?P<pyver>\d+\.\d+)/", path_item)
if res:
dist.py_version = res.group('pyver')
else:
--
2.39.0