mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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>
13 lines
297 B
Bash
Executable file
13 lines
297 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BASE_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/../../")"
|
|
|
|
CRIU="${BASE_DIR}/criu/criu"
|
|
criu=$CRIU
|
|
|
|
export PYTHONPATH="${BASE_DIR}/lib:${BASE_DIR}/crit:${PYTHONPATH-}"
|
|
CRIT="python3 -m crit"
|
|
crit=$CRIT
|
|
|
|
CRIU_COREDUMP="${BASE_DIR}/coredump/coredump"
|
|
criu_coredump=$CRIU_COREDUMP
|