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 20, 2023
1 parent f44e586 commit 9c65997
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 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 All @@ -5383,12 +5383,12 @@ if BUILD_PYTHON3_BINDINGS
if [ "$(DESTDIR)" = "" ]; then \
cd $(builddir)/src/config; \
$(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config \
install $(DISTSETUPOPTS) --prefix=$(PYTHON3_PREFIX) \
install $(DISTSETUPOPTS) --root=$(PYTHON3_PREFIX) \
--record=$(abs_builddir)/src/config/.files3; \
else \
cd $(builddir)/src/config; \
$(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config \
install $(DISTSETUPOPTS) --prefix=$(PYTHON3_PREFIX) \
install $(DISTSETUPOPTS) --root=$(PYTHON3_PREFIX) \
--record=$(abs_builddir)/src/config/.files3 --root=$(DESTDIR); \
fi
cd $(DESTDIR)$(py3execdir) && \
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 9c65997

Please sign in to comment.