Deutsch English Français Italiano |
<mailman.23.1745051965.3008.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: "Peter J. Holzer" <hjp-python@hjp.at> Newsgroups: comp.lang.python Subject: Re: Pip installs to unexpected place Date: Sat, 19 Apr 2025 10:38:52 +0200 Lines: 64 Message-ID: <mailman.23.1745051965.3008.python-list@python.org> References: <4ZcdYR5WnWznV1q@mail.python.org> <cc1c6cf5-f8b9-4528-b6b0-110499b88162@wichmann.us> <4Zd3YM00SYznVKQ@mail.python.org> <CAJQBtgmfgC5aQy_7RXwHDbsxaf1UWYY0=FNsgPPR2UzzuKfTTA@mail.gmail.com> <4ZdrJv0v0LznV1q@mail.python.org> <6d1ac10c-80c0-484b-a7e7-e1966cea1b5d@wichmann.us> <mailman.19.1744926071.3008.python-list@python.org> <m6dnueFg8f0U1@mid.individual.net> <20250418153848.w2hmxpegl3uwii3w@hjp.at> <CAHVvXxR6TDgm-1u_etxcHEGm33nDLQoO3Wimp9OJBXi9uTfpcw@mail.gmail.com> <20250419083852.drkk5dwmkrpg5gye@hjp.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ur5g4cjgqzkwwx4c" X-Trace: news.uni-berlin.de K9nIQ5lOjs9vfx/h6/yZ+AZufAYwPXsiMetUiRDXCVJA== Cancel-Lock: sha1:FoX0htZHS6mzxOz+Eg07ZCat8+Q= sha256:D49NTSU7jNWCnowYDN2BkjrPrMt73ZlglwMZs5XMXEY= Return-Path: <hjp-python@hjp.at> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'content- type:multipart/signed': 0.05; 'scripts.': 0.07; 'python.': 0.08; 'content-type:application/pgp-signature': 0.09; 'filename:fname piece:asc': 0.09; 'filename:fname piece:signature': 0.09; 'filename:fname:signature.asc': 0.09; 'mechanism': 0.09; "shouldn't": 0.09; '"creative': 0.16; '2025': 0.16; '__/': 0.16; 'challenge!"': 0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16; 'greg': 0.16; 'hjp@hjp.at': 0.16; 'holzer': 0.16; 'mats': 0.16; 'reality.': 0.16; 'root.': 0.16; 'stross,': 0.16; 'url- ip:212.17.106.129/32': 0.16; 'url-ip:212.17.106/24': 0.16; 'url- ip:212.17/16': 0.16; 'url:hjp': 0.16; 'wichmann': 0.16; '|_|_)': 0.16; 'wrote:': 0.16; 'python': 0.16; "can't": 0.17; 'to:addr :python-list': 0.20; 'fri,': 0.22; 'installed': 0.23; 'seems': 0.26; "isn't": 0.27; 'sense': 0.28; 'think': 0.29; 'packages': 0.31; 'am,': 0.31; "doesn't": 0.32; 'disabled': 0.32; 'python- list': 0.32; 'path': 0.33; 'header:In-Reply-To:1': 0.34; 'package': 0.34; 'yes,': 0.35; 'this.': 0.35; 'really': 0.36; 'work.': 0.37; "it's": 0.37; 'least': 0.39; "couldn't": 0.40; 'place.': 0.40; 'should': 0.40; "there's": 0.61; 'great': 0.62; 'between': 0.63; 'look': 0.65; 'received:userid': 0.66; 'skip:# 10': 0.68; 'manager': 0.68; 'easy': 0.74; 'completely.': 0.84; 'oscar': 0.84; 'received:at': 0.84 Mail-Followup-To: python-list@python.org Content-Disposition: inline In-Reply-To: <CAHVvXxR6TDgm-1u_etxcHEGm33nDLQoO3Wimp9OJBXi9uTfpcw@mail.gmail.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <20250419083852.drkk5dwmkrpg5gye@hjp.at> X-Mailman-Original-References: <4ZcdYR5WnWznV1q@mail.python.org> <cc1c6cf5-f8b9-4528-b6b0-110499b88162@wichmann.us> <4Zd3YM00SYznVKQ@mail.python.org> <CAJQBtgmfgC5aQy_7RXwHDbsxaf1UWYY0=FNsgPPR2UzzuKfTTA@mail.gmail.com> <4ZdrJv0v0LznV1q@mail.python.org> <6d1ac10c-80c0-484b-a7e7-e1966cea1b5d@wichmann.us> <mailman.19.1744926071.3008.python-list@python.org> <m6dnueFg8f0U1@mid.individual.net> <20250418153848.w2hmxpegl3uwii3w@hjp.at> <CAHVvXxR6TDgm-1u_etxcHEGm33nDLQoO3Wimp9OJBXi9uTfpcw@mail.gmail.com> Bytes: 6957 --ur5g4cjgqzkwwx4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2025-04-18 17:11:33 +0100, Oscar Benjamin via Python-list wrote: > On Fri, 18 Apr 2025 at 16:50, Peter J. Holzer via Python-list > <python-list@python.org> wrote: > > > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > > There's just not a really great answer to this. > > > > > > Seems to me a system-installed application shouldn't be looking in the > > > user's .local packages in the first place. That should only be for th= ings > > > the user has installed "for this user". > > > > It's not the application that looks into .local, it's Python. If you say > > that a system-installed Python shouldn't look into ~/.local, then you've > > just disabled that mechanism completely. If not then Python would > > somehow have to distinguish between system-installed and user-installed > > scripts. This isn't as easy as checking whether the path starts with > > /usr/bin or whether it belongs to root. Tying into the system's package > > manager doesn't look appealing to me (not to mention that it might be > > unacceptably slow). >=20 > Couldn't the system-installed scripts have a shebang like: >=20 > #!/usr/bin/python3 -s Yes, that should work. At least I can't think of any downsides at the moment. hjp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --ur5g4cjgqzkwwx4c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmgDYREACgkQ8g5IURL+ KF0z/xAAgIhbMqE4Ompkwiexp2e7jrFbcKcAoWUehTQc8QQpfynNxK1AGQ66XWXc 5bIjOOCZbp4XYpLfpIfd+cPlGYmaANTnRcBdWLNwrjF//uYx6HuvtBOqKZKGGq1e 5aQbh0+3gq4Ade4JKCQXWh1YQ8vF0ux66vSbRKNa7PAe9hKcrKaBe0pMrmstNfk8 caUE1oWdxvGvgx0waH1NOwhaJiiwhItTAAvo9xxcbgzBhbIizogwuYAzCJ+xkiP+ R4IPcwLz0lReTJSSnXprUDrh17mi4wv3aNXbdpxLB82Efm7ZxQd14/lBC4kSqlYL yS5NOujbj8Po/y+nzi9XGQHJVn4P9Naom8zAcqBalbInj4qu1Xtvw0MEMrLvvQL2 eoS26KYCXbDR+0jxV/kGhPqn2TTr/HbYvQoFxPZiH/tfd8v0xXQQarZ1Cd/Jm+Ho YPMvCR403/uSvb1ilvgBujlQNTaVkadI0aUkWBNlg3F4evRdstF2IcsA2Lnbu3Ns pXjsGKBQDCq02v4DLNIr0uge7Ia9NcnyAhYdRvEMv6pjcy5RsyepR3UAcfiNnjR/ KW1ysFKe1CDkDFxnAb6Ei6202ADA+DtQZIx9Qre3RBFMR7Vuh0SjlyYtYQMvuHDl Zzooid9mr4EPpjYuGTq9kxS8I+wMTPLrjwI+xcR+3OsbhZe4BjM= =CIdO -----END PGP SIGNATURE----- --ur5g4cjgqzkwwx4c--