criu/crit
Radostin Stoyanov 376f3d1800 crit: add requirements.txt for pip>=20.1
When building with pip version 20.0.2 or older, the pip install
command creates a temporary directory and copies all files from
./crit. This results in the following error message:

    ModuleNotFoundError: No module named 'pycriu'

This error appears because the symlink 'pycriu' uses a relative path
that becomes invalid '../lib/py/'.

The '--no-build-isolation' option for pip install is needed to enable
the use of pre-installed dependencies (e.g., protobuf) during build.

The '--ignore-installed' option for pip is needed to avoid an error when
crit is already installed. For example, crit is installed in the GitHub
CI environment as part of the criu OBS package as a dependency for
podman.

Distributions such as Arch Linux have adopted an externally managed
python installation in compliance with PEP 668 [1] that prevents pip
from breaking the system by either installing packages to the system or
locally in the home folder. The '--break-system-packages' [2] option
allows pip to modify an externally managed Python installation.

[1] https://peps.python.org/pep-0668/
[2] https://pip.pypa.io/en/stable/cli/pip_uninstall/

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2023-10-22 13:29:25 -07:00
..
.gitignore crit: fix compatibility with Python 3.12 2023-04-15 21:17:21 -07:00
crit crit: drop python 2 support 2023-10-22 13:29:25 -07:00
pycriu crit: Add symbolic link for pycriu module 2016-03-01 12:50:47 +03:00
pyproject.toml crit: add requirements.txt for pip>=20.1 2023-10-22 13:29:25 -07:00
requirements.txt crit: add requirements.txt for pip>=20.1 2023-10-22 13:29:25 -07:00
setup.py crit: fix compatibility with Python 3.12 2023-04-15 21:17:21 -07:00