forked from checkpoint-restore/criu
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'checkpoint-restore:criu-dev' into fdavid/cap-buffer-size
- Loading branch information
Showing
82 changed files
with
635 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../lib/py/ | ||
../lib/pycriu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
crit.egg-info/ | ||
build/ | ||
dist/ | ||
version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
PYTHON_EXTERNALLY_MANAGED := $(shell $(PYTHON) -c 'import os, sysconfig; print(int(os.path.isfile(os.path.join(sysconfig.get_path("stdlib"), "EXTERNALLY-MANAGED"))))') | ||
PIP_BREAK_SYSTEM_PACKAGES := 0 | ||
|
||
VERSION_FILE := $(if $(obj),$(addprefix $(obj)/,crit/version.py),crit/version.py) | ||
|
||
all-y += ${VERSION_FILE} | ||
cleanup-y += ${VERSION_FILE} | ||
|
||
${VERSION_FILE}: | ||
$(Q) echo "__version__ = '${CRIU_VERSION}'" > $@ | ||
|
||
install: ${VERSION_FILE} | ||
ifeq ($(PYTHON_EXTERNALLY_MANAGED),1) | ||
ifeq ($(PIP_BREAK_SYSTEM_PACKAGES),0) | ||
$(E) " SKIP INSTALL crit: Externally managed python environment (See PEP 668 for more information)" | ||
$(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 | ||
endif | ||
else | ||
$(E) " INSTALL " crit | ||
$(Q) $(PYTHON) -m pip install --upgrade --ignore-installed --prefix=$(DESTDIR)$(PREFIX) ./crit | ||
endif | ||
.PHONY: install | ||
|
||
uninstall: | ||
ifeq ($(PYTHON_EXTERNALLY_MANAGED),1) | ||
ifeq ($(PIP_BREAK_SYSTEM_PACKAGES),0) | ||
$(E) " SKIP UNINSTALL crit: Externally managed python environment (See PEP 668 for more information)" | ||
$(E) " Consider using PIP_BREAK_SYSTEM_PACKAGES=1 make uninstall" | ||
else | ||
$(E) " UNINSTALL" crit | ||
$(Q) $(PYTHON) ./scripts/uninstall_module.py --prefix=$(DESTDIR)$(PREFIX) crit | ||
endif | ||
else | ||
$(E) " UNINSTALL" crit | ||
$(Q) $(PYTHON) ./scripts/uninstall_module.py --prefix=$(DESTDIR)$(PREFIX) crit | ||
endif | ||
.PHONY: uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .version import __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
[build-system] | ||
# Minimum requirements for the build system to execute. | ||
requires = ["setuptools", "wheel"] # PEP 508 specifications. | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "crit" | ||
description = "CRiu Image Tool" | ||
authors = [ | ||
{name = "CRIU team", email = "criu@openvz.org"}, | ||
] | ||
license = {text = "GPLv2"} | ||
dynamic = ["version"] | ||
requires-python = ">=3.6" | ||
|
||
[project.scripts] | ||
crit = "crit.__main__:main" | ||
|
||
[tool.setuptools] | ||
packages = ["crit"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "crit.__version__"} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.