all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH 1/4] build/python-build-system: Fix easy-install.pth collisions.
Date: Mon, 15 Dec 2014 22:24:06 +0100	[thread overview]
Message-ID: <87lhm8fvyh.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPPWSe4gVK6mNKk23+RT_HvdZc06W=wzF=-W49dHnV=cYA@mail.gmail.com> (Federico Beffa's message of "Mon, 15 Dec 2014 21:36:27 +0100")

Federico Beffa <beffa@ieee.org> skribis:

> On Sun, Dec 14, 2014 at 9:28 PM, Ludovic Courtès <ludo@gnu.org> wrote:

[...]

>> 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 <beffa@fbengineering.ch>
> 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-file
>   phase and corresponding function.

Perfect, thanks!

Ludo’.

      reply	other threads:[~2014-12-15 21:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-14 19:39 [PATCH 1/4] build/python-build-system: Fix easy-install.pth collisions Federico Beffa
2014-12-14 20:28 ` Ludovic Courtès
2014-12-15 20:36   ` Federico Beffa
2014-12-15 21:24     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhm8fvyh.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.