From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8NzTIhman2SuFAEASxT56A (envelope-from ) for ; Sat, 01 Jul 2023 05:14:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MDm1Ihman2QgwgAAauVa8A (envelope-from ) for ; Sat, 01 Jul 2023 05:14:33 +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 2424436B0A for ; Sat, 1 Jul 2023 05:14:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFR3i-0002lg-4X; Fri, 30 Jun 2023 23:14:02 -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 1qFR3g-0002lW-II for guix-devel@gnu.org; Fri, 30 Jun 2023 23:14:00 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFR3f-0001Jc-16 for guix-devel@gnu.org; Fri, 30 Jun 2023 23:14:00 -0400 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-636274ce31eso17535476d6.1 for ; Fri, 30 Jun 2023 20:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688181237; x=1690773237; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=c7OwCFgQiTpJoJOt+HDHbtCYDQ4bCCq3B/AER/44V6w=; b=s5t2spUoqB2sHLiQIJUwcgNzSI80c+Yk/5P5nJOrxY/szBqVyyrx1RztzzMzibh/V1 l78LOGQ37CfeTsA3ZTdv5u85eeSqerKXrBlFmFC6oI9ywQbjGZINneuMaC1YqFUSZJ0n dUEtNhC+Zxs/izzT7++uLXGC8DbbHrUVdfBS2esz3C3JxSDFaEJnQ716/WkNzNgSdrYk 3JD5LT7Wv0rORx2w25TaVv7qMJu/1H7acV7evcDFx3/NOEOzM/12pIolt6/PG+K0U7Sc 1n7bU4G3iEDl3FnyLAYUeLd0eDyPueXAfGdn+1HNvirCnhdDKGj9hdqWNy1M6E1C7WF4 GxoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688181237; x=1690773237; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=c7OwCFgQiTpJoJOt+HDHbtCYDQ4bCCq3B/AER/44V6w=; b=grBOsYt8StvXyQxHGW9uXZmiJ9DVzdyh/7EDXxQfVGN9pT26eaMECteuVqEhO6frXp nYAzPFpEuJiXkFXpy4ga7WkCnS0U80mKlFz/MYlzoyW3U1IW0FjrS15EA608TjgPzGwv MlPO2Q2oR1neLKlz99S0MsVKu3tWpTEqbTw+oQKG5y7FIvkuPemGygAWdhQmro0LIn6D drQI5UJ7aTyg/Va0bJyz/34rjHh40ELbP1e+2nINbH65Gqyk+QRfjuJp2n7HJvWC0bPK 6ba81qeRNEDrITFhJHPSn8fHdAQ5iZtTkWeAwXWfObRUycIE2zJRw30U1N7i944bUKms qzZQ== X-Gm-Message-State: ABy/qLaz09ffRyffBzD62oz3p0OH8bhvuJxWiFLkVecYdS55O0LDNiq0 Woa3H49vdAAEoDghad+EV458bUl40Iw= X-Google-Smtp-Source: APBJJlEMvnPUAlrjw8DcX5edHHNuiIk7hH3EmJ3oyiEar5urxLjovWyQADVVxaruIsDb1iXzmP+Zfg== X-Received: by 2002:ad4:518e:0:b0:635:f52f:36a4 with SMTP id b14-20020ad4518e000000b00635f52f36a4mr3827014qvp.64.1688181237629; Fri, 30 Jun 2023 20:13:57 -0700 (PDT) Received: from hurd (dsl-10-133-148.b2b2c.ca. [72.10.133.148]) by smtp.gmail.com with ESMTPSA id kr30-20020a0562142b9e00b00635fcd30ff9sm3444061qvb.40.2023.06.30.20.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 20:13:57 -0700 (PDT) From: Maxim Cournoyer To: =?utf-8?B?5a6L5paH5q2m?= Cc: edk@beaver-labs.com, guix-devel Subject: Re: Guix's python has pip's user dir in its loadpath References: <87edmey1wg.fsf@rdklein.fr> <877crma7qe.fsf@envs.net> Date: Fri, 30 Jun 2023 23:13:55 -0400 In-Reply-To: <877crma7qe.fsf@envs.net> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Thu, 29 Jun 2023 18:22:17 +0800") Message-ID: <87edls1fyk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf31.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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=1688181273; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c7OwCFgQiTpJoJOt+HDHbtCYDQ4bCCq3B/AER/44V6w=; b=DfUMKTklkZNgiE95SzCVXWg3uqzh9X40HPiGSlAMF7lmnnBivJSZ6iPC90DIa58eVbJlxC k18tB+EPasAAlvh535bV2adFfYT3gn39ss97TMOp68QcJYBDJf4eaa3/qSMprfser37IQf mU3pN9+tLBqEEL2iJ/3HK3yZcD96QxGfo9kpQzjFfAibxscdEqUoeMNigx39u4nQrytoRt G80UVbPZ+5JlogAVWjt7iqz9nzbONsAOVUIc7siKXoMkMD5vkyOqM28VtHdbxhGqOQ/C2W 9NOw2lp7hceEJNfC3ZnpogIlJle2FORCRFS6/jQEOfN7PMz4aFwzfmjsdk0+xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=s5t2spUo; dmarc=pass (policy=none) header.from=gmail.com; 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=1688181273; a=rsa-sha256; cv=none; b=FR6Fn4OAu2NwHikTUbvwIPqfqq2Sy1YBm3y5LMZ0pOqRr/X8RzmuwJFd5kBFpsrhbUq0we suUlxHPxfoZ4WfaDbAJxKNnRjuSmgH21d1xcn2QFWBtnDGeGVfFtYclTNfK5tFTv3HwNrL vBWNK5eQm8Sxqb1X7CNKg4bfNrwdoafQkueRzBWrsR2dhY86c1KFhk1B8iMOgmCWpZhsTl KDL3ENDpdQwLaKjyifDwnGESJEB7T5m53fturCdqPzmgytn0TOgaM5AbQ6hyZqLVP7NAS0 K+VpzcwgDHr7UnalfmafAyHz3gVaktwt2w4whFSQZ+NB7e6GwQoSNEwNsojwXw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=s5t2spUo; dmarc=pass (policy=none) header.from=gmail.com; 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: 2424436B0A X-Spam-Score: -4.92 X-TUID: djtT+mE22ejA Hi, =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > 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/ Agreed, I think this works as designed: the Guix-installed dependencies appear as *system* dependencies on the sys.path (see 'python -m site'), and USER_SITE (which is ~/.local/lib/python3.10/site-packages) must have precedence over it for locally user-installed packages to be able to override the system packages. That's for example necessary for virtualenvs to work as designed (it used to be that virtualenvs were near useless, with the Guix-provided dependencies taking precedence on the ones installed in a virtualenv). --=20 Thanks, Maxim