diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 6431fc9d79b..21571bd9762 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -144,7 +144,7 @@ BuildRequires: pcre2-devel BuildRequires: pkgconfig BuildRequires: popt-devel BuildRequires: python3-devel -BuildRequires: (python3-setuptools if python3 >= 3.12) +BuildRequires: python3-setuptools BuildRequires: samba-devel # required for idmap_sss.so BuildRequires: samba-winbind diff --git a/src/config/setup.py.in b/src/config/setup.py.in index 27f63c4061c..613b050d538 100644 --- a/src/config/setup.py.in +++ b/src/config/setup.py.in @@ -19,10 +19,10 @@ # """ -Python-level packaging using distutils. +Python-level packaging using setuptools. """ -from distutils.core import setup +from setuptools import setup setup( name='SSSDConfig',