From 449ec1efd5bb38c2e0e7aec15bf09e2e25e533cb Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Tue, 23 May 2023 19:15:24 +0800 Subject: [PATCH] Fix compilation failure due to python-setuptools update to 66.0 --- python-logutils.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-logutils.spec b/python-logutils.spec index c5bd4a1..e1ac56f 100644 --- a/python-logutils.spec +++ b/python-logutils.spec @@ -5,7 +5,7 @@ These handlers are designed for Python standard library's logging package. Name: python-logutils Version: 0.3.5 -Release: 9 +Release: 10 License: BSD Summary: Handlers for Python library's logging package URL: https://pypi.io/project/logutils @@ -14,6 +14,8 @@ Source0: https://pypi.io/packages/source/l/logutils/logutils-%{version}.t BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3-redis +BuildRequires: redis %description %_description @@ -45,7 +47,9 @@ rm -rf %{py2dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} %check -%{__python3} setup.py test +export PYTHONPATH=%{buildroot}%{python3_sitelib} +%{__python3} -m unittest discover -v tests + %files -n python3-logutils %license LICENSE.txt @@ -57,6 +61,9 @@ rm -rf %{py2dir} %doc doc/ %changelog +* Tue May 23 2023 yaoxin - 0.3.5-10 +- Fix compilation failure due to python-setuptools update to 66.0 + * Mon Sep 27 2021 caodongxia - 0.3.5-9 - Provides python-logutils