.spec file: %if 0%{?rhel} && 0%{?rhel} == 8 Requires: platform-python-setuptools %else Requires: python3-setuptools %endif Actually, this package (python3-ipalib) does not require setuptools to work. Please remove this dependency. Also, I'm kindly asking to backport the change to Fedora up to 37.
Where is your code snippet from? It does not exist in the spec file for python-freeipa and I cannot locate the package that contains it. setuptools is required for building python-freeipa which you've attached this bug report to.
freeipa-4.10.2-1.fc39.3.src.rpm line 872
I'm not against `BuildRequires:`. I'm against `Requires:`
Moving this to the proper component.
This is still a valid requirement. It was added upstream in this commit: commit 99b8499513915646dd6efe6d0f6a320b3e969190 Author: Petr Voborník <pvoborni> Date: Fri Jun 19 14:01:50 2015 +0200 add python-setuptools to requires Commit 9f049ca14403f3696d54d186e6b1b15181f055df introduced dependency on python-setuptools on line: from pkg_resources import parse_version This dependency is missing on minimal installation and then ipa-server-upgrade fails on rpm install/upgrade. Reviewed-By: Martin Basti <mbasti>
$ rpm -qf /usr/lib/python3.11/site-packages/pkg_resources/__init__.py python3-setuptools-65.5.1-2.fc38.noarch We still have plenty of code in FreeIPA that depends on this import.