Re: Pip installs to unexpected place

Liste des GroupesRevenir à cl python 
Sujet : Re: Pip installs to unexpected place
De : hjp-python (at) *nospam* hjp.at (Peter J. Holzer)
Groupes : comp.lang.python
Date : 18. Apr 2025, 16:38:48
Autres entêtes
Message-ID : <mailman.20.1744991304.3008.python-list@python.org>
References : 1 2 3 4 5 6 7 8 9 10 11
Pièces jointes : signature.asc (application/pgp-signature)
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 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

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


Date Sujet#  Auteur
17 Apr 25 * Re: Pip installs to unexpected place11Mats Wichmann
18 Apr 25 `* Re: Pip installs to unexpected place10Greg Ewing
18 Apr 25  +- Re: Pip installs to unexpected place (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
18 Apr 25  +- Re: Pip installs to unexpected place1Peter J. Holzer
18 Apr 25  +- Re: Pip installs to unexpected place1Oscar Benjamin
18 Apr 25  +- Re: Pip installs to unexpected place1Thomas Passin
19 Apr 25  +- Re: Pip installs to unexpected place1Peter J. Holzer
19 Apr 25  +* Re: Pip installs to unexpected place2Peter J. Holzer
19 Apr 25  i`- Re: Pip installs to unexpected place1songbird
19 Apr 25  `* Re: Pip installs to unexpected place2Thomas Passin
20 Apr 25   `- Re: Pip installs to unexpected place1rbowman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal