Skip to content

Commit

Permalink
SSSDConfig: set PYTHONPATH to make setuptools work on centos8
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Sep 13, 2023
1 parent e1097e2 commit b1cd56f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5475,13 +5475,13 @@ install-exec-hook: installsssddirs
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) \
PYTHONPATH+=":$(PYTHON2_PREFIX)/lib/python$(PYTHON2_VERSION)/site-packages/" setup.py build \
--build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(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) \
PYTHONPATH+=":$(PYTHON2_PREFIX)/lib/python$(PYTHON2_VERSION)/site-packages/" setup.py build \
--build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON2_PREFIX) \
--record=$(abs_builddir)/src/config/.files2 --root=$(DESTDIR); \
fi
cd $(DESTDIR)$(py2execdir) && \
Expand All @@ -5493,13 +5493,13 @@ endif
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) \
PYTHONPATH+=":$(PYTHON3_PREFIX)/lib/python$(PYTHON3_VERSION)/site-packages/" $(PYTHON3) setup.py build \
--build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(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) \
PYTHONPATH+=":$(PYTHON3_PREFIX)/lib/python$(PYTHON3_VERSION)/site-packages/" setup.py build \
--build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON3_PREFIX) \
--record=$(abs_builddir)/src/config/.files3 --root=$(DESTDIR); \
fi
cd $(DESTDIR)$(py3execdir) && \
Expand Down

0 comments on commit b1cd56f

Please sign in to comment.