Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future of Docker releases of python bindings #197

Open
fsimonis opened this issue Feb 14, 2024 · 0 comments
Open

Future of Docker releases of python bindings #197

fsimonis opened this issue Feb 14, 2024 · 0 comments

Comments

@fsimonis
Copy link
Member

This issue also affects downstream python components.

Problem

With the publication of PEP 668, the pip uses changed.

In short, directly using pip:

  • conflicts with the system package manager and can lead to a broken system. A user should use the system package manager to install system-wide packages (apt, pacman, dnf, ..)
  • installing with --user interferes with the global python state of a user and can lead to a broken user account.

Proposed solution by the PEP:

  • Mark the global system as "externally managed" and block installation for root and --user.
  • Direct users to use a venv instead.

Implications on docker releases

To install the preCICE python bindings into an Ubuntu-based docker image one should use Debian packages.

The only pragmatic solution I can think of to make this work with Docker is to use a venv to install the preCICE bindings and then load it on login via /etc/profile.d/.
Problem is that this only works if a user starts a login shell, which isn't the default of docker.

The real solution is probably to drop the Docker releases of python-related packages.
Then always install and install python, and further adapter dependencies in a venv in the CI of whatever needs the bindings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant