unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add Python 3.
Date: Wed, 28 Aug 2013 16:40:02 +0200	[thread overview]
Message-ID: <87a9k1c20t.fsf@gnu.org> (raw)
In-Reply-To: <201308281612.47788.andreas@enge.fr> (Andreas Enge's message of "Wed, 28 Aug 2013 16:12:47 +0200")

Andreas Enge <andreas@enge.fr> skribis:

> Am Mittwoch, 28. August 2013 schrieb Ludovic Courtès:
>> > +(define-public python3
>> 
>> Nice that it works without any modifications.  Please push.  (I think
>> Andreas wanted to discuss the naming convention for Python packages, but
>> I think adding Python 3 doesn’t cause any problems.)
>
> Only a little ;-)
>
> I would rename
>    (define-public python
> to
>    (define-public python-2
>
> and add
>    (define-public python
> for python version 3 (compare libjpeg for version 9 and libjpeg-8).

What about having 3 variables: python-3, python-2, and python; ‘python’
would point to whichever is the default.

For GCC and Guile we don’t even have the version-less variable name.
Instead ‘gnu-build-system’ explicitly refers to the one we want.

Anyway, I don’t think this should block this patch.

> Then all packages relying on python will be recompiled with the newest 
> version. If this poses problems, we could modify the input to python-2.
>
> Rationale: We would like to package the newest versions and give their 
> variables the default names. If for compatibility problems, we need an 
> older version, the corresponding variable should get a suffix. (While the 
> NAME field of a package should be the default name in all cases.)

Sounds like the right approach for a start.

However, some packages will work with both versions, while others will
be 2-only or 3-only.  We’ll most likely build both variants for those
that work with both 2 and 3, for instance because there’s both a 2-only
and a 3-only package that depends on them.  Thus, eventually, there may
be a need for a procedure that rewrites a package to explicitly depend
on a given package version (similar to ‘rewritten-inputs’ in
build-system/gnu.scm).

Ludo’.

  reply	other threads:[~2013-08-28 14:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27 23:03 [PATCH] gnu: Add Python 3 Cyril Roelandt
2013-08-28 13:03 ` Ludovic Courtès
2013-08-28 14:12   ` Andreas Enge
2013-08-28 14:40     ` Ludovic Courtès [this message]
2013-08-28 20:58       ` Andreas Enge
2013-08-28 22:07         ` Ludovic Courtès
2013-09-01 14:07 ` Ludovic Courtès
2013-09-01 14:41   ` Andreas Enge
2013-09-01 19:40     ` Ludovic Courtès
2013-09-01 19:50       ` Andreas Enge
2013-09-01 20:13         ` Topic branches Ludovic Courtès
2013-09-02 20:19           ` Andreas Enge

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=87a9k1c20t.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=andreas@enge.fr \
    --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).