From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +LouHo1bnWRDzgAASxT56A (envelope-from ) for ; Thu, 29 Jun 2023 12:23:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oOEjHo1bnWQWaAEA9RJhRA (envelope-from ) for ; Thu, 29 Jun 2023 12:23:09 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2EB60381F5 for ; Thu, 29 Jun 2023 12:23:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEonR-0005Mx-Jv; Thu, 29 Jun 2023 06:22:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEonO-0005Mi-UN for guix-devel@gnu.org; Thu, 29 Jun 2023 06:22:39 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEonK-0006V6-RQ for guix-devel@gnu.org; Thu, 29 Jun 2023 06:22:38 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 9641938A19F5; Thu, 29 Jun 2023 10:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1688034146; bh=YFQh7DdEtWKqBaQRuiZO/O8wAAXO6LDKRLR865oqtVs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YGzXQZYQGLlek56OCstkRBpMQbRhbJvT//R6KiDDiEH/5JOySbRpK9VOWztdZWZ2S c03FoQe9oCyXKde09CXinZ9FpJajKVlp+X8lZFb+TluDq0xfQ47hWv54FdoIRGzcLp o3hUAc/fcEUo6mW5Mm/QvOWGC/tCgQ6uWCyzr0SPqtTTMMA3boPhfZI0h1+Ijy/RoX Cl5ANcqYNOgNGhsMcHf3+iKA6fF6DkHZeEWkRfMlHppk4SNKieonBDqvFfprgP26it uzDA3HPX9uiBXtjEcsDrZXSDGNGEKhKYPfHaIFwhB6gQe+u5I+rp0+RblbdoTtdTRb RRU0NqyEZDjsrZ3rx7w32iQY1m3Cb1/zfCh3raXyBhJfM9lKuhDjFNMrlytmIg8RHd kgcIVrJ5H3meO3I2L+Oef8URa5JSVckoEi3jW+VyMp9f2jXj/W3ghHQUUYriBuSR9L /egcXvGCIgbEFnWfTEYlfyx+NXUqQmdkkC1ugfQSJ4XYRiAvy9CVzuvsJ3wm04yuSF vZihhcjnq6yeCE3H7GTzL6FfB2Aqte5Nn8wdIU+mdRXgQh9Cngj6HU9CRpH7joGQYx zdhAM07hh3R+kOHeG3nIumBEnQRUqpJj7dZ8Jbfk1hCaN2CIUHd7JFgPDGl3OPLVK1 bFauda3QWkEy5FW4XDUT5W0g= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yasAfUEbIPEM; Thu, 29 Jun 2023 10:22:22 +0000 (UTC) Received: from localhost (unknown [36.170.58.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Thu, 29 Jun 2023 10:22:21 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 89f9c263; Thu, 29 Jun 2023 10:22:17 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: edk@beaver-labs.com Cc: guix-devel Subject: Re: Guix's python has pip's user dir in its loadpath In-Reply-To: <87edmey1wg.fsf@rdklein.fr> (edk@beaver-labs.com's message of "Wed, 14 Jun 2023 08:42:56 +0200") References: <87edmey1wg.fsf@rdklein.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Thu, 29 Jun 2023 18:22:17 +0800 Message-ID: <877crma7qe.fsf@envs.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688034189; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YFQh7DdEtWKqBaQRuiZO/O8wAAXO6LDKRLR865oqtVs=; b=Iknk2YBlGig3lgB9JtyVGa2uwQBuuVzqukywTWxyHZk4DDOhvQTMciyexnT7wDsRJIcayH HBJCX22wscvFKP0+UsTOnwuKDsbTmeVpbsRyJ2NaFv5p4mJPnTe7lSmTATal3eTtGnMEES Yj4fM3f9CGVSPVAOaZwsnMV+KH1FFNr+PVq+jsa26ZO8SYbmPvj1G489uxYn6Q1syZ49u7 2Zqv6pVZvZFf/CfhaU4BRmOgu1Uo9NgelOIsqhWN6F7Wp4C4JdZzgfVbfspsdpVp3/S206 u72daFRVNERtMIhdrsbkHWxFPa5LDfdtulz0uKjYJNgXq8SICLLOmWn1XL1IRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=YGzXQZYQ; dmarc=pass (policy=quarantine) header.from=envs.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688034189; a=rsa-sha256; cv=none; b=k+Z7ghKe7RCZC1lEKvfbCf0nvoMT+ZunsOKVR2DQkQAVbfPUJIS5DGWFyU70qM2Pdlq4eN Et1vmUnsxPSY7+kzO8Qe0df2IzV4vw7euW9xD2pKCXujt2jkxLoYBUdVJYnJdvlRwTcTDp gJdE8BXPhUlAYgSnxzdWV3D9fu2bpyOte+DQtl488bzVNDaDvL406iWY9L5wPKRmdzlx1F r5bXO8stKHAbZu2+hOcZ/gbHk4A8aN+d0Vlbq+UOclwPmGi51cN9ouUkXyc8PvgoaJUOnx 46pkJEbiutfMOJA1TEgUhuQHC67Vtjs0cdH+Fa18CBJu2U8QSXlJ22W+wZmJIQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=YGzXQZYQ; dmarc=pass (policy=quarantine) header.from=envs.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2EB60381F5 X-Spam-Score: -4.26 X-TUID: HP+LpdcFS7Fo edk@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 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. Hello, I think this is a well-known issue according to PEP 668: https://peps.python.org/pep-0668/ The suggested solution is to introduce a `EXTERNALLY-MANAGED` file to disable the useage of `pip install`, and advice `guix shell` or `venv`. Similiar to ArchLinux: https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/commit/547eee4deb54fda2a3892997145b57de37301c5d