diff --git a/python-rpm-generators.spec b/python-rpm-generators.spec index 398167752f5bd86993098c0abddba25ddda9e6f8..f29da37fe5ba98f47efe69164f5ad1b33589db6a 100644 --- a/python-rpm-generators.spec +++ b/python-rpm-generators.spec @@ -2,7 +2,7 @@ Name: python-rpm-generators Version: 9 -Release: 3 +Release: 4 Summary: Dependency generators for Python RPMs License: GPLv2+ @@ -44,6 +44,9 @@ install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} pythondeps.sh pythondistdeps.py %{_rpmconfigdir}/pythondistdeps.py %changelog +* Sun Apr 23 2023 caodongxia - 9-4 +- Fix the python3 version cannot be found when pyproject.toml is used for building + * Thu Oct 27 2022 zhangruifang - 9-3 - Rebuild for next release diff --git a/pythondistdeps.py b/pythondistdeps.py index 1d3535bde72f1128bd613ff25f874da71d34c5ee..eb91ac9f8f39779d1ad1f66e2779bd4a4413db53 100644 --- a/pythondistdeps.py +++ b/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\d+\.\d)/", path_item) + res = re.search(r"/python(?P\d+\.\d+)/", path_item) if res: dist.py_version = res.group('pyver') else: