mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
lib: use separate packages for pycriu and crit
Newer versions of pip use an isolated virtual environment when building Python projects. However, when the source code of CRIT is copied into the isolated environment, the symlink for `../lib/py` (pycriu) becomes invalid. As a workaround, we used the `--no-build-isolation` option for `pip install`. However, this functionality has issues in some versions of PIP [1, 2]. To fix this problem, this patch adds separate packages for pycriu and crit, and each package is installed independently. [1] https://github.com/pypa/pip/pull/8221 [2] https://github.com/pypa/pip/issues/8165#issuecomment-625401463 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
97b8b659c9
commit
0b62f4267a
29 changed files with 182 additions and 66 deletions
16
Makefile
16
Makefile
|
|
@ -164,7 +164,7 @@ HOSTCFLAGS += $(WARNINGS) $(DEFINES) -iquote include/
|
|||
export AFLAGS CFLAGS USERCLFAGS HOSTCFLAGS
|
||||
|
||||
# Default target
|
||||
all: criu lib
|
||||
all: criu lib crit
|
||||
.PHONY: all
|
||||
|
||||
#
|
||||
|
|
@ -288,9 +288,9 @@ clean mrproper:
|
|||
$(Q) $(MAKE) $(build)=criu $@
|
||||
$(Q) $(MAKE) $(build)=soccr $@
|
||||
$(Q) $(MAKE) $(build)=lib $@
|
||||
$(Q) $(MAKE) $(build)=crit $@
|
||||
$(Q) $(MAKE) $(build)=compel $@
|
||||
$(Q) $(MAKE) $(build)=compel/plugins $@
|
||||
$(Q) $(MAKE) $(build)=lib $@
|
||||
.PHONY: clean mrproper
|
||||
|
||||
clean-amdgpu_plugin:
|
||||
|
|
@ -337,6 +337,10 @@ amdgpu_plugin: criu
|
|||
$(Q) $(MAKE) -C plugins/amdgpu all
|
||||
.PHONY: amdgpu_plugin
|
||||
|
||||
crit: lib
|
||||
$(Q) $(MAKE) -C crit
|
||||
.PHONY: crit
|
||||
|
||||
#
|
||||
# Generating tar requires tag matched CRIU_VERSION.
|
||||
# If not found then simply use GIT's describe with
|
||||
|
|
@ -402,6 +406,7 @@ help:
|
|||
@echo ' Targets:'
|
||||
@echo ' all - Build all [*] targets'
|
||||
@echo ' * criu - Build criu'
|
||||
@echo ' * crit - Build crit'
|
||||
@echo ' zdtm - Build zdtm test-suite'
|
||||
@echo ' docs - Build documentation'
|
||||
@echo ' install - Install CRIU (see INSTALL.md)'
|
||||
|
|
@ -425,11 +430,12 @@ lint:
|
|||
flake8 --config=scripts/flake8.cfg test/zdtm.py
|
||||
flake8 --config=scripts/flake8.cfg test/inhfd/*.py
|
||||
flake8 --config=scripts/flake8.cfg test/others/rpc/config_file.py
|
||||
flake8 --config=scripts/flake8.cfg lib/py/images/pb2dict.py
|
||||
flake8 --config=scripts/flake8.cfg lib/py/images/images.py
|
||||
flake8 --config=scripts/flake8.cfg lib/pycriu/images/pb2dict.py
|
||||
flake8 --config=scripts/flake8.cfg lib/pycriu/images/images.py
|
||||
flake8 --config=scripts/flake8.cfg scripts/criu-ns
|
||||
flake8 --config=scripts/flake8.cfg test/others/criu-ns/run.py
|
||||
flake8 --config=scripts/flake8.cfg crit/setup.py
|
||||
flake8 --config=scripts/flake8.cfg crit/*.py
|
||||
flake8 --config=scripts/flake8.cfg crit/crit/*.py
|
||||
flake8 --config=scripts/flake8.cfg scripts/uninstall_module.py
|
||||
flake8 --config=scripts/flake8.cfg coredump/ coredump/coredump
|
||||
flake8 --config=scripts/flake8.cfg scripts/github-indent-warnings.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue