all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: PEP 668 -- Graceful cooperation between external and Python package managers
Date: Wed, 15 Sep 2021 00:22:04 -0400	[thread overview]
Message-ID: <87h7emo4cz.fsf@gmail.com> (raw)
In-Reply-To: <4a0cc6cc294f5788657ef88818497835dc244d4c.camel@gmail.com> (Liliana Marie Prikler's message of "Sun, 12 Sep 2021 12:34:06 +0200")

Hi,

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

> Hi,
>
> Am Samstag, den 11.09.2021, 22:36 -0400 schrieb Maxim Cournoyer:
>> IIUC, PEP 668 is about *warning* a pip user when installing a package
>> would shadow a system one; it does so by reading a EXTERNALLY-MANAGED
>> file in the Python library site-packages directory.
>> 
>> So simply put, all we have to do to enable this future warning in pip
>> is to install an EXTERNALLY-MANAGED file as a phase in our
>> python-build-system.
> Imho I don't think Guix needs to do anything to address PEP 668.  PEP
> 668 concerns traditional distros, in which pip and the distro package
> manager may both write to the same location (that location typically
> being /usr/lib).  IIUC it does not concern Nix or Guix, whose store
> paths should already not be written to by pip.

pip defaults to install to a user location nowadays (pip install
--user) when run as an unprivileged user [0], so even on traditional
distributions, the temptation to "sudo pip install" things and overwrite
the distro's files has been reduced.

IIUC, the EXTERNALLY-MANAGED file would also warn users when they
override (as in shadow) an already available library installed at the
system level, which could be used on Guix also (although the benefit
seems small to me).

Maxim

[0]  https://github.com/pypa/pip/pull/7002


      reply	other threads:[~2021-09-15  4:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 14:39 PEP 668 -- Graceful cooperation between external and Python package managers Maxime Devos
2021-09-07 16:08 ` Leo Famulari
2021-09-12  2:36   ` Maxim Cournoyer
2021-09-12 10:34     ` Liliana Marie Prikler
2021-09-15  4:22       ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7emo4cz.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=liliana.prikler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.