Fix FTBFS with setuptools >= 62.1

Resolves: rhbz#2097102
This commit is contained in:
Charalampos Stratakis 2022-06-22 20:01:46 +02:00
parent 343c16cba5
commit d714fa326e
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Name: python-%{modname}
Version: 4.7.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
# The lxml project is licensed under BSD
@ -54,7 +54,7 @@ env WITH_CYTHON=true %py3_build
%check
# The tests assume inplace build, so we copy the built library to source-dir.
# If not done that, Python can either import the tests or the extension modules, but not both.
cp -a build/lib.%{python3_platform}-%{python3_version}/* src/
cp -a build/lib.%{python3_platform}-*/* src/
# The options are: verbose, unit, functional
%{python3} test.py -vuf
@ -65,6 +65,10 @@ cp -a build/lib.%{python3_platform}-%{python3_version}/* src/
%{python3_sitearch}/%{modname}-*.egg-info/
%changelog
* Wed Jun 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.7.1-4
- Fix FTBFS with setuptools >= 62.1
- Resolves: rhbz#2097102
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.7.1-3
- Rebuilt for Python 3.11