Re: Guix's python has pip's user dir in its loadpath

2023-07-11 Thread Development of GNU Guix and the GNU System distribution.
> I think maybe we could add a build argument called > e.g. '#:honor-user-site?' to disable the having PYTHONNOUSERSITE=1 in > the wrapper for a few select packages (e.g. pip, virtualenv, probably a > few others that are expected to work with or honor pip user-installed > Python packages). > I

Re: Guix's python has pip's user dir in its loadpath

2023-07-07 Thread Maxim Cournoyer
Hello, Wojtek Kosior writes: >> > 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

Re: Guix's python has pip's user dir in its loadpath

2023-07-07 Thread Development of GNU Guix and the GNU System distribution.
> > 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

Re: Guix's python has pip's user dir in its loadpath

2023-07-07 Thread Maxim Cournoyer
Hi Wojtek, Wojtek Kosior writes: >> > But we'll be rebuilding the Python world anyway, so now is a chance to >> > try out some changes like that, though maybe it is a bit much with >> > what we are trying already. See >> >> It's a simple change, I guess we

Re: Guix's python has pip's user dir in its loadpath

2023-07-06 Thread Development of GNU Guix and the GNU System distribution.
> > But we'll be rebuilding the Python world anyway, so now is a chance to > > try out some changes like that, though maybe it is a bit much with > > what we are trying already. See > > It's a simple change, I guess we could try it at the same time, if >

Re: Guix's python has pip's user dir in its loadpath

2023-07-06 Thread Maxim Cournoyer
Hi John, John Kehayias writes: > Hi, > > On Sat, Jul 01, 2023 at 11:57 AM, Maxim Cournoyer wrote: > >> Hi, >> >> Wojtek Kosior writes: >> >>> The precedence of local, pip-installed Python libraries over Guix ones >>> has already been a source of bugs. And these can be hard to diagnose. >> >>>

Re: Guix's python has pip's user dir in its loadpath

2023-07-05 Thread John Kehayias
Hi, On Sat, Jul 01, 2023 at 11:57 AM, Maxim Cournoyer wrote: > Hi, > > Wojtek Kosior writes: > >> The precedence of local, pip-installed Python libraries over Guix ones >> has already been a source of bugs. And these can be hard to diagnose. > >> I imagine an optimal solution would be to

Re: Guix's python has pip's user dir in its loadpath

2023-07-01 Thread Maxim Cournoyer
Hi, Wojtek Kosior writes: > The precedence of local, pip-installed Python libraries over Guix ones > has already been a source of bugs. And these can be hard to diagnose. > I imagine an optimal solution would be to configure this behavior on > per-package basis. The vast majority of

Re: Guix's python has pip's user dir in its loadpath

2023-07-01 Thread Development of GNU Guix and the GNU System distribution.
The precedence of local, pip-installed Python libraries over Guix ones has already been a source of bugs. And these can be hard to diagnose. I imagine an optimal solution would be to configure this behavior on per-package basis. The vast majority of applications does not need to load local

Re: Guix's python has pip's user dir in its loadpath

2023-06-30 Thread Maxim Cournoyer
Hi, 宋文武 writes: > e...@beaver-labs.com writes: > >> Dear Guix devs, >> >> While working around this bug: >> >> https://issues.guix.gnu.org/63912 >> >> I found that guix's Python will load anything in >> .local/lib/python3.10/site-packages/ over any installed package in the >> current profile.

Re: Guix's python has pip's user dir in its loadpath

2023-06-29 Thread 宋文武
e...@beaver-labs.com writes: > Dear Guix devs, > > While working around this bug: > > https://issues.guix.gnu.org/63912 > > I found that guix's Python will load anything in > .local/lib/python3.10/site-packages/ over any installed package in the > current profile. This makes pip-installed package

Guix's python has pip's user dir in its loadpath

2023-06-14 Thread edk
Dear Guix devs, While working around this bug: https://issues.guix.gnu.org/63912 I found that guix's Python will load anything in .local/lib/python3.10/site-packages/ over any installed package in the current profile. This makes pip-installed package overshadow guix's. I'm not sure this is