From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: [PATCH] gnu: python: Honor 'GUIX_PYTHON_X_Y_SITE_PACKAGES'. Date: Sat, 17 Mar 2018 22:53:33 +0100 Message-ID: <93100715-0198-f210-3b2c-856af462151a@crazy-compilers.com> References: <87371tqbyb.fsf@elephly.net> <20180223165953.GA6088@thebird.nl> <40dc2378-a039-fec8-55cd-23911f1642ab@crazy-compilers.com> <87lgerwk9s.fsf@member.fsf.org> <874llfvtl6.fsf_-_@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------E09AE7E8626DDBB8D8B03378" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exJll-0006rK-Bj for guix-devel@gnu.org; Sat, 17 Mar 2018 17:53:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exJli-0008VC-17 for guix-devel@gnu.org; Sat, 17 Mar 2018 17:53:41 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46003) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exJlh-0008P5-NR for guix-devel@gnu.org; Sat, 17 Mar 2018 17:53:37 -0400 In-Reply-To: <874llfvtl6.fsf_-_@member.fsf.org> Content-Language: en-US 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org This is a multi-part message in MIME format. --------------E09AE7E8626DDBB8D8B03378 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 17.03.2018 um 12:18 schrieb =E5=AE=8B=E6=96=87=E6=AD=A6: >> I plan to implement option 1 by adding a "sitecustomize.py" (better >> than modify "site.py") into the python packages, and modify >> "search-path-specification" to use "GUIX_PYTHON_X_Y_SITE_PACKAGES". Sorry, do say, but does not work in a virtual environment, since GUIX_PYTHON_X_Y_SITE_PACKAGES will be added unconditionally. Also I assume this will execute site.main() twice. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --------------E09AE7E8626DDBB8D8B03378 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Am 17.03.2018 um 12:18 schrieb =E5=AE=8B= =E6=96=87=E6=AD=A6:
I plan to implement option 1 by adding a "sitecust=
omize.py" (better
than modify "site.py") into the python packages, and modify
"search-path-specification" to use "GUIX_PYTHON_X_Y_SITE_PACKAGES".

Sorry, do say, but does not work in a virtual environment, since GUIX_PYTHON_X_Y_SITE_PACKAGES will be added unconditionally. Also I assume this will execute site.main() twice.

--=20
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com   =
            |
| www.crazy-compilers.com | compilers which you thought are impo=
ssible |
--------------E09AE7E8626DDBB8D8B03378--