58 lines
2.0 KiB
Diff
58 lines
2.0 KiB
Diff
From 8b4b9f9020658554562665f78e019b897ff80647 Mon Sep 17 00:00:00 2001
|
|
From: weidongkl <weidong@uniontech.com>
|
|
Date: Thu, 5 Dec 2024 10:56:26 +0800
|
|
Subject: [PATCH] chore: support building without network
|
|
|
|
Signed-off-by: weidongkl <weidong@uniontech.com>
|
|
---
|
|
crit/Makefile | 8 ++++++--
|
|
lib/Makefile | 5 ++---
|
|
2 files changed, 8 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/crit/Makefile b/crit/Makefile
|
|
index 9a856db..34f1359 100644
|
|
--- a/crit/Makefile
|
|
+++ b/crit/Makefile
|
|
@@ -16,11 +16,15 @@ ifeq ($(PIP_BREAK_SYSTEM_PACKAGES),0)
|
|
$(E) " Consider using PIP_BREAK_SYSTEM_PACKAGES=1 make install"
|
|
else
|
|
$(E) " INSTALL " crit
|
|
- $(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./crit
|
|
+ #$(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./crit
|
|
+ $(Q) cd crit;$(PYTHON) setup.py install --root $(DESTDIR)
|
|
+
|
|
endif
|
|
else
|
|
$(E) " INSTALL " crit
|
|
- $(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./crit
|
|
+ #$(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./crit
|
|
+ $(Q) cd crit;$(PYTHON) setup.py install --root $(DESTDIR)
|
|
+
|
|
endif
|
|
.PHONY: install
|
|
|
|
diff --git a/lib/Makefile b/lib/Makefile
|
|
index ae371e7..7fdd5b8 100644
|
|
--- a/lib/Makefile
|
|
+++ b/lib/Makefile
|
|
@@ -60,14 +60,13 @@ install: lib-c lib-a lib-py lib/c/criu.pc.in
|
|
ifeq ($(PYTHON_EXTERNALLY_MANAGED),1)
|
|
ifeq ($(PIP_BREAK_SYSTEM_PACKAGES),0)
|
|
$(E) " SKIP INSTALL pycriu: Externally managed python environment (See PEP 668 for more information)"
|
|
- $(E) " Consider using PIP_BREAK_SYSTEM_PACKAGES=1 make install"
|
|
else
|
|
$(E) " INSTALL " pycriu
|
|
- $(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./lib
|
|
+ $(Q) cd lib;$(PYTHON) setup.py install --root $(DESTDIR)
|
|
endif
|
|
else
|
|
$(E) " INSTALL " pycriu
|
|
- $(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./lib
|
|
+ $(Q) cd lib;$(PYTHON) setup.py install --root $(DESTDIR)
|
|
endif
|
|
.PHONY: install
|
|
|
|
--
|
|
2.46.0
|
|
|