From 11d3ceaac388023652935bae245b19d490350472 Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Fri, 10 Jul 2026 13:28:31 +0200 Subject: [PATCH] Revert "python/sepolicy: update for modern python builds" This reverts commit 3aac92b7250ed57fd4ab674ffcf03d9c499b3188. 'pip install build' fails on systems without network and python3-build is not available in RHEL-10. --- python/sepolicy/.gitignore | 1 - python/sepolicy/Makefile | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/python/sepolicy/.gitignore b/python/sepolicy/.gitignore index 80824997..32fb47f9 100644 --- a/python/sepolicy/.gitignore +++ b/python/sepolicy/.gitignore @@ -2,4 +2,3 @@ build tmp *.bak sepolicy.egg-info/ -dist/ diff --git a/python/sepolicy/Makefile b/python/sepolicy/Makefile index 4a4a3512..ccb22fe7 100644 --- a/python/sepolicy/Makefile +++ b/python/sepolicy/Makefile @@ -14,11 +14,11 @@ BASHCOMPLETIONS=sepolicy-bash-completion.sh all: python-build python-build: - $(PYTHON) -m pip install build wheel setuptools - $(PYTHON) -m build --no-isolation --wheel . + $(PYTHON) setup.py build clean: - -rm -rf build dist *.egg-info *~ \#* *pyc .#* + $(PYTHON) setup.py clean + -rm -rf build *~ \#* *pyc .#* sepolicy.egg-info/ sepolgen: ln -sf sepolicy sepolgen @@ -26,8 +26,8 @@ sepolgen: test: @$(PYTHON) test_sepolicy.py -v -install: python-build - $(PYTHON) -m pip install --no-build-isolation --force-reinstall --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` dist/*.whl +install: + $(PYTHON) -m pip install --no-build-isolation --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) . [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR) install -m 755 sepolicy.py $(DESTDIR)$(BINDIR)/sepolicy (cd $(DESTDIR)$(BINDIR); ln -sf sepolicy sepolgen) -- 2.53.0