flatpak-builder-tools icon indicating copy to clipboard operation
flatpak-builder-tools copied to clipboard

[pip] work inside a virual environment

Open lypwig opened this issue 5 years ago • 2 comments

Some issues may appear due to the user's pip environment.

For instance some installed dependencies may cause troubles (see #122). flatpak-pip-generator.py will even not work at all if PIP_REQUIRE_VIRTUALENV is set to true and the script runs outside a venv.

This could be fixed if flatpak-pip-generator.py creates a temporary virtual environment to work on, ensuring that it always run in the same, clean environment.

lypwig avatar May 14 '20 13:05 lypwig

Since the pip helper uses pip itself to resolve dependencies, it's a good idea to run the helper in flatpak app/SDK environment, so packages installed on host won't "leak" into generated dependency tree.

gasinvein avatar May 14 '20 14:05 gasinvein

It's now possible to run in a flatpak container, e.g. --runtime org.gnome.Sdk//3.38. That addresses this issue, no?

muelli avatar Mar 19 '21 15:03 muelli