unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: guix-devel <guix-devel@gnu.org>
Subject: Python conflicts.
Date: Mon, 29 Jun 2015 14:31:48 +0200	[thread overview]
Message-ID: <idjr3ouitl7.fsf@bimsb-sys02.mdc-berlin.net> (raw)

Hi Guix,

there are two things related to the installation of Python modules that
I would like to see changed; but as I may not understand what side
effects the proposed changes might have I'd like to gather some opinions
first.

1) Nosetests

Installing Python modules that have an input "python-nose" (always?)
install "$out/bin/nosetests" and various wrappers around this script.
This script is not very useful for a user of the module as it only runs
the test suite.  As we're often propagating Python module inputs, the
installation of one Python module usually results in conflicts with the
various versions of "$out/bin/nosetests" that are to be installed into
the profile.

This makes the nosetests scripts even less useful as an arbitrary
version will end up in the profile.  I'd like to exclude them from
installation in all Python packages, maybe by modifying
"python-build-system" such that the files are deleted from the output
directory again.

What I don't like about using the "python-build-system" for this is that
"$out/bin/nosetests" is only created when "python-nose" (or
"python2-nose") is a package input.  Is there a better way?  Can we
prevent the creation of the "nosetests" script (and its wrappers), maybe
with some flag to setuptools?

2) lib/python$version/site-packages/site.{py,pyc}

Another file that frequently causes conflicts is "site.py" (and its
compiled cousin).  It seems to me that "site.py" doesn't contain any
module-specific information and is probably the same for all modules.  I
would like to change "python-build-system" such that Python modules do
not install this file at all.

The only problem I see is that the "python" package itself does not come
with this file.  If it should be provided at all I think that it should
come from the "python" package, rather than any of the modules that may
or may not be installed.

What do you think?

~~ Ricardo

             reply	other threads:[~2015-06-29 12:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 12:31 Ricardo Wurmus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-30  7:01 Python conflicts Federico Beffa
2015-06-30  8:04 ` Ricardo Wurmus

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=idjr3ouitl7.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).