Updated patch for python detection

This commit is contained in:
Jaroslav Škarvada 2021-02-16 01:01:35 +01:00
parent 25ac31df02
commit ac059dcd78
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ index b8bd74a..2d9a714 100644
# Python
include(VolkPython) #sets PYTHON_EXECUTABLE and PYTHON_DASH_B
-VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version.split()[0] >= '3.4'" PYTHON_MIN_VER_FOUND)
+VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version_info > (3, 4)" PYTHON_MIN_VER_FOUND)
+VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version_info >= (3, 4)" PYTHON_MIN_VER_FOUND)
VOLK_PYTHON_CHECK_MODULE("mako >= 0.4.2" mako "mako.__version__ >= '0.4.2'" MAKO_FOUND)
if(NOT PYTHON_MIN_VER_FOUND)

View File

@ -1,6 +1,6 @@
Name: volk
Version: 2.4.1
Release: 4%{?dist}
Release: 5%{?dist}
Summary: The Vector Optimized Library of Kernels
License: GPLv3+
URL: https://github.com/gnuradio/%{name}
@ -120,6 +120,9 @@ rm -f %{buildroot}%{_libdir}/libcpu_features.a
%changelog
* Tue Feb 16 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.1-5
- Updated patch for python detection
* Mon Feb 15 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.1-4
- Fixed python detection
Resolves: rhbz#1928144