unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Guix's python has pip's user dir in its loadpath
@ 2023-06-14  6:42 edk
  2023-06-29 10:22 ` 宋文武
  0 siblings, 1 reply; 12+ messages in thread
From: edk @ 2023-06-14  6:42 UTC (permalink / raw)
  To: guix-devel

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 desirable behavior. What I was expecting was for
the host system's python packages to be completely ignored. If I need to
change that, I can explicitely change GUIX_PYTHONPATH.

GUIX_PYTHONPATH is set to:
/home/edouard/.guix-profile/lib/python3.10/site-packages
/gnu/store/avgyacvy2n4x510dpwsf9dzadh7ldnd2-profile/lib/python3.10/site-packages
/home/edouard/.guix-profile/lib/python3.10/site-packages
/home/edouard/.guix-profile/lib/python3.9/site-packages
/home/edouard/.guix-profile/lib/python3.9/site-packages
/home/edouard/.guix-profile/lib/python3.9/site-packages
/home/edouard/.guix-profile/lib/python3.9/site-packages

Therefore loading packages from ~/.local/lib/python3.10/site-packages/
must be hardcoded in the interpreter.

Any thoughts ? Maybe it is a known problem ? If so, my apologies for the
noise.

Cheers,

Edouard.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-11 18:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14  6:42 Guix's python has pip's user dir in its loadpath edk
2023-06-29 10:22 ` 宋文武
2023-07-01  3:13   ` Maxim Cournoyer
2023-07-01 11:32     ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
2023-07-01 15:57       ` Maxim Cournoyer
2023-07-05 20:29         ` John Kehayias
2023-07-06 15:35           ` Maxim Cournoyer
2023-07-06 21:28             ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
2023-07-07 13:32               ` Maxim Cournoyer
2023-07-07 14:44                 ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
2023-07-08  5:08                   ` Maxim Cournoyer
2023-07-11 18:21                     ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).