* We need to generalize 'package-with-python2'
@ 2015-02-03 23:42 Mark H Weaver
2015-02-04 3:47 ` Eric Bavier
0 siblings, 1 reply; 3+ messages in thread
From: Mark H Weaver @ 2015-02-03 23:42 UTC (permalink / raw)
To: guix-devel
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?
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: We need to generalize 'package-with-python2'
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
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bavier @ 2015-02-04 3:47 UTC (permalink / raw)
To: Mark H Weaver; +Cc: guix-devel
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?
`~Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: We need to generalize 'package-with-python2'
2015-02-04 3:47 ` Eric Bavier
@ 2015-02-07 23:12 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-02-07 23:12 UTC (permalink / raw)
To: Eric Bavier; +Cc: guix-devel
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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-07 23:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).