Deutsch   English   Français   Italiano  
<mailman.20.1744991304.3008.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!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: Fri, 18 Apr 2025 17:38:48 +0200
Lines: 52
Message-ID: <mailman.20.1744991304.3008.python-list@python.org>
References: <CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com>
 <bbe32f47-13d2-459c-af22-4e0e37834091@tompassin.net>
 <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>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="vrzy7qk5nyvbbp5o"
X-Trace: news.uni-berlin.de PSwmOCsf917JiAtyBlXtJwNRA2vo6v1tolCWC0GAKfiw==
Cancel-Lock: sha1:mMnUYhgtn9piY2vwfZE0ZFSmOok= sha256:/Y4fK4b67aM1nKTp97N3sPF9+N+5ZQWY75gi0XvjINE=
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; '__/': 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; 'to:addr:python-list': 0.20; 'installed': 0.23; 'seems':
 0.26; "isn't": 0.27; 'sense': 0.28; '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; 'this.':
 0.35; 'really': 0.36; "it's": 0.37; 'place.': 0.40; 'should':
 0.40; "there's": 0.61; 'great': 0.62; 'between': 0.63; 'look':
 0.65; 'received:userid': 0.66; 'manager': 0.68; 'easy': 0.74;
 'completely.': 0.84; 'received:at': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <m6dnueFg8f0U1@mid.individual.net>
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: <20250418153848.w2hmxpegl3uwii3w@hjp.at>
X-Mailman-Original-References: <CAN06=CxPNLHtr_sdgphR2jrN1V+WbB8wZDJdbvfEDb-MYtmPHA@mail.gmail.com>
 <bbe32f47-13d2-459c-af22-4e0e37834091@tompassin.net>
 <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>
Bytes: 6372


--vrzy7qk5nyvbbp5o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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 things
> 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).

        hjp

--=20
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

--vrzy7qk5nyvbbp5o
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmgCcgIACgkQ8g5IURL+
KF1crxAAohZV8Zn9PAMD+EmDnHFVqmp1CeDDLoMYcedcxWZhsDW5lBVJKr59c8yv
jz6bUVZJdOvpeXOXz52GkUIV2mghqo2sI7TLYYNVd4y62mVHCglPytx1mCxYF1Aa
zQrdbcJuPCYdS1Q5aENc2h+/KYcW+pii+dP1LaViWg+xb8Du09BYsY09Psr1ogRl
r25/6IOPBXdl0GJXhjE3Er8DJCDlbaxgvMGK/5S3kceK3gvFIDWyp/ZctHmbZDdM
kPsbeW5el3qMFfUs7Y+4Osw36kMi5/BcY9Ef0qNy0vfn0Mj4qmQUR0BlsLicByha
59obkuNEgHLTphLhlzPT0bPGaVISp81I2GCHUsueVM05JXPqyU0NegIi5QdLnKhS
q9OpMtEQBYKvS3g+cH3ddxzrFY/FQkj5V3xsKQdnXCiWNl+3mo7hAmpWnrt8wf9T
4X+vuzYJY2hJslGiQlHiwO6UI66ObB+aNEhJHxLMJr8HNOUj1cXoH99Oc0UHltyN
eyVFTL4zRvVi1mXnoZJGiCA1jL9Ssdm7JOT+cnf0d6ZMapEHqQ2W8gIs/CQIVLTV
PHsgiuuPY9LS0XiOG90OVVCb5EDBt8hfhVBnozjQE5o+W1EJyNTncaePIpnXkBeo
mxog3RB9/FCihbvRZJinTQNKgHvpfamDZHk/vMh01MtTJqiA/sU=
=MF8q
-----END PGP SIGNATURE-----

--vrzy7qk5nyvbbp5o--