Skip to content

Commit

Permalink
SSSDConfig: use 'setuptools' instead of 'distutils'
Browse files Browse the repository at this point in the history
The Python standard library distutils module will be removed from Python 3.12+
  • Loading branch information
alexey-tikhonov committed Feb 21, 2023
1 parent f44e586 commit 183926a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5365,12 +5365,12 @@ if BUILD_PYTHON2_BINDINGS
if [ "$(DESTDIR)" = "" ]; then \
cd $(builddir)/src/config; \
$(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config \
install $(DISTSETUPOPTS) --prefix=$(PYTHON2_PREFIX) \
install $(DISTSETUPOPTS) --root=$(PYTHON2_PREFIX) \
--record=$(abs_builddir)/src/config/.files2; \
else \
cd $(builddir)/src/config; \
$(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config \
install $(DISTSETUPOPTS) --prefix=$(PYTHON2_PREFIX) \
install $(DISTSETUPOPTS) --root=$(PYTHON2_PREFIX) \
--record=$(abs_builddir)/src/config/.files2 --root=$(DESTDIR); \
fi
cd $(DESTDIR)$(py2execdir) && \
Expand Down
1 change: 1 addition & 0 deletions contrib/sssd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ BuildRequires: pcre2-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: samba-devel
# required for idmap_sss.so
BuildRequires: samba-winbind
Expand Down
4 changes: 2 additions & 2 deletions src/config/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 183926a

Please sign in to comment.