guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing package-with-python2


From: Thompson, David
Subject: Re: Fixing package-with-python2
Date: Mon, 1 Feb 2016 17:12:34 -0500

On Mon, Feb 1, 2016 at 5:07 PM, Ludovic Courtès <address@hidden> wrote:
> "Thompson, David" <address@hidden> skribis:
>
>> On Mon, Feb 1, 2016 at 8:06 AM, Efraim Flashner <address@hidden> wrote:
>>
>>> I looked over the commit but not deeply enough yet, would it be possible to
>>> use some of the logic in this to fix the package-with-python2 issue?
>>
>> Here's a potential solution for 'package-with-python2': module
>> introspection.
>
> Evil!  ;-)
>
> An idea I haven’t taken the time to test yet would be to use
> ‘properties’:
>
>   (define python-foobar   ;with Python 3
>     (package
>       (name "foobar")
>       ;; Specify which Python 2 variant to use.
>       (properties `((python2-variant . ,(delay python2-foobar))))))
>
>   (define python2-foobar
>     (package (inherit python-foobar)
>       ;; … stuff beyond the mechanical python 2→3 switch…
>       ))
>
> ‘package-with-python2’ would honor this ‘python2-variant’ property.
>
> Thoughts?

I'm happy that my evil suggestion got a better solution to show itself. :)

- Dave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]