Package: crmsh / 5.0.0~rc2-1

0026-Fix_python_build.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Fix python build rules
 Make sure build works without network access.
Author: Valentin Vidic <vvidic@debian.org>
Last-Update: 2025-06-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile.am
+++ b/Makefile.am
@@ -66,7 +66,7 @@
 
 # Build Python wheel
 $(builddir)/dist/crmsh-$(VERSION)-py3-none-any.whl $(builddir)/build:
-	cd $(srcdir); python3 -m build --outdir $(shell readlink -f $(builddir))/dist --wheel --sdist --verbose
+	cd $(srcdir); python3 -m build --outdir $(shell readlink -f $(builddir))/dist --wheel --sdist --verbose --no-isolation
 
 all-local: $(builddir)/dist/crmsh-$(VERSION)-py3-none-any.whl $(builddir)/build
 
@@ -75,7 +75,7 @@
 # Python module installation
 install-exec-local:
 	$(INSTALL) -d -m 770 $(DESTDIR)${localstatedir}/log/crmsh
-	python3 -m pip install --prefix=$(prefix) $(shell readlink -f $(builddir))/dist/*.whl
+	python3 -m pip install --root=$(DESTDIR) --prefix=$(prefix) $(shell readlink -f $(builddir))/dist/*.whl
 	$(INSTALL) -d -m 770 $(DESTDIR)$(CRM_CACHE_DIR)
 
 uninstall-local: