File: 0026-Fix_python_build.patch

package info (click to toggle)
crmsh 5.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,980 kB
  • sloc: python: 50,399; sh: 1,207; makefile: 255; xml: 243; exp: 234; awk: 22
file content (26 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download | duplicates (2)
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: