[qa][dev] Support for `sudo pip install` going away soon (PEP 668)

Jeremy Stanley fungi at yuggoth.org
Mon Feb 6 15:12:42 UTC 2023


Debian 12 (bookworm) and non-LTS Ubuntu 23.04 (lunar) are going to
disallow `sudo pip install` so anything you install with pip for use
by their packaged Python interpreter will need to go into venvs.
Here's the upcoming readme about it:

https://salsa.debian.org/cpython-team/python3/-/blob/master/debian/README.venv

This has obvious implications for DevStack and Grenade, which
currently install OpenStack services into the system environment for
the distribution-packaged interpreter. Both bookworm and lunar will
be released in a few months and people are going to end up using
them for development systems, but at a minimum we're going to be
forced to address this before we make Debian 12 or Ubuntu 24.04 LTS
a targeted test platform for a release.

There was an attempt to implement a solution 5 years ago when the
writing was clearly on the wall that this would eventually happen.
It may need some updates, but probably could serve as a good
starting point:

https://review.opendev.org/558930

-- 
Jeremy Stanley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230206/50ff53c9/attachment.sig>


More information about the openstack-discuss mailing list