Path: csiph.com!pasdenom.info!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!bofh.it!news.nic.it!robomod From: Jeremy Stanley Newsgroups: linux.debian.maint.python Subject: Re: #!/usr/bin/python3 vs virtualenv Date: Fri, 03 Mar 2023 22:50:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Mar 3 21:40:22 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="puagm4k4aeioxpfq" Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Sa-Exim-Connect-IP: 2001:4802:7801:102:be76:4eff:fe20:63e0 X-Sa-Exim-Rcpt-To: debian-python@lists.debian.org X-Sa-Exim-Mail-From: fungi@yuggoth.org X-Sa-Exim-Scanned: No (on azathoth.yuggoth.org); SAEximRunCond expanded to false X-Mailing-List: archive/latest/20872 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20230303213959.e6o7sl6ycx244qab@yuggoth.org Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 3 Mar 2023 21:39:59 +0000 X-Original-Message-ID: <20230303213959.e6o7sl6ycx244qab@yuggoth.org> X-Original-References: <1c48b573-b3cd-0eb8-4493-752dd9d0c3fa@inria.fr> <9193D789-A0A4-4883-B2AC-3CBFF1ED3444@ubuntu.com> <20230303191648.zhsf7b5bukvwcgmh@yuggoth.org> <20230303204314.f663ltpcjhg3iyzt@yuggoth.org> Xref: csiph.com linux.debian.maint.python:14968 --puagm4k4aeioxpfq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-03-03 16:22:11 -0500 (-0500), Jorge Moraleda wrote: > I did not know about `sudo pip install --break-system-packages > foo` or `sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED` (Frankly > I only knew about this issue what I have read on this discussion). [...] They come from a reading of the pip documentation and associated PEP-668 specification respectively. I do hope power users read documentation before they choose to break their systems. Be aware that the second approach I mentioned is removing a file which gets installed by the libpython3.11-stdlib package, so will end up getting replaced each time you upgrade that package as it's not a conffile. It's a reasonable approach for things like container base images where subsequent image build steps use pip to install packages into the container, but it would be annoying for a "normal" system where you upgrade packages without building entirely new images. The pip install command-line option is more of a user-facing escape hatch, since it's clearly worded to let you know that it can quite easily render existing Python applications inoperable if you choose to install things into user or system site directories with pip. --=20 Jeremy Stanley --puagm4k4aeioxpfq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEl65Jb8At7J/DU7LnSPmWEUNJWCkFAmQCaRxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk3 QUU0OTZGQzAyREVDOUZDMzUzQjJFNzQ4Rjk5NjExNDM0OTU4MjkACgkQSPmWEUNJ WCkMhxAApq+pBfoF+ISvHH3P3l9IMAnBBLA+xWqQbU0+c4E6NwfB0nYIRyhQiNxW Qq+sP9CxKs/aI8DwBIavXQxITo0F9gqzrl7BznovCNo8DDYpWu9N10EFbb0UPbSw kn4ni9Wigl62ncO39Bt3eRl7H2YCtFbRnQNBSrEpmQwV3c90WC87aafe8TW9KR9/ ir7ehIZHHTA47jga/bWySGKudInha1TGwiF4kY9pk9y/oYk57x6j2dKa2Ir1iEeV kSlbEOv2FQ1H8eZwfwqbzkaKMlKiYuz/TimeDoCme6C8dBpqF47HDRJiLEqTYI2E 0E0z+NltAeTYLFHBN29WaGjGKfMwE6qDLUhKMBZFO1XwXG/kPO1Gf8jm6fMRtKjq 095HML0d+IYhHP21MbJqAYsVD1A91M/tT1kXvs8GnBcoL9nZYceQiCzzRTShBeuf o338b96xLSzLJueaZDihnS1GEpu1sfGmvTz2r3JVDmW0SMJ1st5TqZ02AyLvbYCS BH7a3ohr+QTvEr+1lKU6QYTtklb1XuwfWBb17rMdm865dyeFLcFjCBASDDH50ibd yXbZcTgj0vGvRG70IPwt4a4bDtBKrPmlhVvARLaNQ/q6sSBe3l/CpLbTEjotZhIo IRptFLLbkQwCCJ0PFPhNDXJ6Qqy9dnadCvNTJF4GMaewoRP69VI= =QIxR -----END PGP SIGNATURE----- --puagm4k4aeioxpfq--