From: ludo@gnu.org (Ludovic Courtès)
To: Eric Bavier <bavier@member.fsf.org>
Cc: guix-devel@gnu.org
Subject: Re: We need to generalize 'package-with-python2'
Date: Sun, 08 Feb 2015 00:12:13 +0100 [thread overview]
Message-ID: <87pp9lxqnm.fsf@gnu.org> (raw)
In-Reply-To: <20150203214713.47d2fd1b@PocketWee> (Eric Bavier's message of "Tue, 3 Feb 2015 21:47:13 -0600")
Eric Bavier <bavier@member.fsf.org> skribis:
> On Tue, 03 Feb 2015 18:42:03 -0500
> Mark H Weaver <mhw@netris.org> wrote:
>
>> The 'python-dbus' package (called 'dbus-python' upsteam) uses the
>> 'gnu-build-system', and like most other python libraries, there will
>> be two variants: 'python-dbus' and 'python2-dbus'. Unfortunately,
>> 'package-with-python2' only works on packages that use
>> 'python-build-system'. This is a problem.
>>
>> It wouldn't be so bad to use 'inherit' to create 'python2-dbus' from
>> 'python-dbus', but the more serious problem is that unless we
>> generalize 'package-with-python2', it won't work properly on any
>> package that uses 'python-dbus' as an input.
>>
>> On the other hand, I realize that 'package-with-explicit-python'
>> intentionally avoids traversing into packages unless they use
>> 'python-build-system', and that this is important for efficiency.
>>
>> Any thoughts on how best to solve this?
>
> Would it be enough to stop recursion when the bag inputs no longer
> contain a python?
Perhaps, but there’s also the problem that there’s no generic way to
communicate the Python to use (#:python in ‘python-build-system’) to
arbitrary build systems.
I’m not sure how to solve the problem Mark raises.
Perhaps ‘package-with-python2’ could be passed a set of mappings; we’d
give it the python-dbus -> python2-dbus mapping and it would just honor
it. Thoughts?
Ludo’.
prev parent reply other threads:[~2015-02-07 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 23:42 We need to generalize 'package-with-python2' Mark H Weaver
2015-02-04 3:47 ` Eric Bavier
2015-02-07 23:12 ` 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
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=87pp9lxqnm.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bavier@member.fsf.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 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).