#15 Fix FTBFS with setuptools >= 62.1
Merged 2 years ago by cstratak. Opened 2 years ago by cstratak.
rpms/ cstratak/python-lxml setuptools_ftbfs  into  rawhide

file modified
+6 -2
@@ -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 @@ 

  %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 @@ 

  %{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

  

Resolves: rhbz#2097102

The directory structure has changed with setuptools 62.1, expanding the wildcard makes the package compatible with the new and old versions as well.

Build succeeded.

The change looks good and the package builds fine with old setuptools in CI and with the new one in COPR: https://copr.fedorainfracloud.org/coprs/cstratak/setuptools-62.4.0-final/build/4556534/

Pull-Request has been merged by cstratak

2 years ago
Metadata