From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/4] build/python-build-system: Fix easy-install.pth collisions. Date: Mon, 15 Dec 2014 22:24:06 +0100 Message-ID: <87lhm8fvyh.fsf@gnu.org> References: <87y4qaugb1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0d7n-00079x-EW for guix-devel@gnu.org; Mon, 15 Dec 2014 16:24:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0d7g-0008Aj-BD for guix-devel@gnu.org; Mon, 15 Dec 2014 16:24:15 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:49094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0d7g-0008Af-3w for guix-devel@gnu.org; Mon, 15 Dec 2014 16:24:08 -0500 In-Reply-To: (Federico Beffa's message of "Mon, 15 Dec 2014 21:36:27 +0100") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa skribis: > On Sun, Dec 14, 2014 at 9:28 PM, Ludovic Court=C3=A8s wrot= e: [...] >> Is PACKAGE.pth a common convention? I mean, does Python (or >> setuptools?) actually use files called PYTHON.pth? > > Yes, the basename of path configuration files with extension .pth does > not matter. The site module will load them all. Setuptools, on top of > easy-install.pth, installs a site.py file. This program adds (with > site.addsitedir) all directories in PYTHONPATH to the list of > directories to be processed by the site module. > > https://docs.python.org/2/library/site.html > > Before writing the path I had conflicts, e.g., between matplotlib and > cairocffi resulting in import failures. After the patch they work > nicely together. > > Using NAME.pth instead of easy-install.pth should guarantee that no > package configuration file collisions occurs between different > packages installed with setuptools, nor between two versions of the > same library. OK, thanks for the explanation. > From d32c6b5b51c4d61a2aef7467705073dafc1087d5 Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Sat, 13 Dec 2014 22:19:08 +0100 > Subject: [PATCH 1/4] build/python-build-system: Fix easy-install.pth > collisions. > > * guix/build/python-build-system.scm (rename-pth-file): New rename-pth-fi= le > phase and corresponding function. Perfect, thanks! Ludo=E2=80=99.