[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guix's python has pip's user dir in its loadpath
From: |
Wojtek Kosior |
Subject: |
Re: Guix's python has pip's user dir in its loadpath |
Date: |
Fri, 7 Jul 2023 16:44:05 +0200 |
> > I just saw this message and hurried myself up to test the patch to
> > python-build-system that I made. Unfortunately, it turns out the
> > "PYTHONNOUSERSITE=1" env var breaks pip which tries to install wheels to
> > the system site directory and fails due to a read-only filesystem.
>
> I'm not sure I follow; why would PYTHONNOUSERSITE affect pip? I thought
> it should only appear in wrappers of Python executables, not be set in a
> profile's environment (thus not affecting pip) ?
Indeed. And once I make my change, PYTHONNOUSERSITE gets also placed in
the wrapper of the `pip` executable.
> Could you share the diff of the patch you tried so far?
I am attaching the patch file.
I was trying to test with
./pre-inst-env guix shell -C --network --no-cwd python-xmldiff coreutils
python-pip
pip install xmldiff==2.4
echo > ~/.local/lib/python3.10/site-packages/xmldiff/main.py
xmldiff --help
Without my patch, we get an error on 4th line. With my patch, we get
the "Read-only file system" error on the 2nd line
Best,
Wojtek
-- (sig_start)
website: https://koszko.org/koszko.html
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A
follow me on Fediverse: https://friendica.me/profile/koszko/profile
♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)
0001-guix-build-python-build-system-Don-t-process-user-si.patch
Description: Text Data
pgp3fSKsdXOoi.pgp
Description: OpenPGP digital signature
- Re: Guix's python has pip's user dir in its loadpath, Wojtek Kosior, 2023/07/01
- Re: Guix's python has pip's user dir in its loadpath, Maxim Cournoyer, 2023/07/01
- Re: Guix's python has pip's user dir in its loadpath, John Kehayias, 2023/07/05
- Re: Guix's python has pip's user dir in its loadpath, Maxim Cournoyer, 2023/07/06
- Re: Guix's python has pip's user dir in its loadpath, Wojtek Kosior, 2023/07/06
- Re: Guix's python has pip's user dir in its loadpath, Maxim Cournoyer, 2023/07/07
- Re: Guix's python has pip's user dir in its loadpath,
Wojtek Kosior <=
- Re: Guix's python has pip's user dir in its loadpath, Maxim Cournoyer, 2023/07/08
- Re: Guix's python has pip's user dir in its loadpath, Wojtek Kosior, 2023/07/11