Re: bug#22437: Fixing package-with-python2

2016-02-08 Thread Ludovic Courtès
I’ve pushed the ‘python2-variant’ trick as 1be8334. Subsequent commits use it for a bunch of packages. I’ll let others handle the remaining packages where this would help. :-) Closing the bug! Ludo’.

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Ludovic Courtès
Efraim Flashner skribis: > On Wed, 03 Feb 2016 09:47:15 +0100 > l...@gnu.org (Ludovic Courtès) wrote: [...] >> This will trigger rebuilds (but with an identical result) because in >> manually-written variants we would use “python2-foo” as the label of >> inputs, whereas the automatic transforma

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Ludovic Courtès
Ricardo Wurmus skribis: > Efraim Flashner writes: > >> On Wed, 03 Feb 2016 09:47:15 +0100 >> l...@gnu.org (Ludovic Courtès) wrote: >> >>> l...@gnu.org (Ludovic Courtès) skribis: >>> >>> > An idea I haven’t taken the time to test yet would be to use >>> > ‘properties’: >>> > >>> > (define pyth

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Ludovic Courtès
Andreas Enge skribis: > this looks really good, but I do not understand why we need the > additional private variable, for instance %python-cython: Glad you noticed. :-) > On Wed, Feb 03, 2016 at 09:47:15AM +0100, Ludovic Courtès wrote: >> -(define-public python-cython >> +(define %python-cyth

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Andreas Enge
Hello, this looks really good, but I do not understand why we need the additional private variable, for instance %python-cython: On Wed, Feb 03, 2016 at 09:47:15AM +0100, Ludovic Courtès wrote: > -(define-public python-cython > +(define %python-cython >(package > (name "python-cython") >

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Ricardo Wurmus
Efraim Flashner writes: > On Wed, 03 Feb 2016 09:47:15 +0100 > l...@gnu.org (Ludovic Courtès) wrote: > >> l...@gnu.org (Ludovic Courtès) skribis: >> >> > An idea I haven’t taken the time to test yet would be to use >> > ‘properties’: >> > >> > (define python-foobar ;with Python 3 >> > (

Re: bug#22437: Fixing package-with-python2

2016-02-07 Thread Efraim Flashner
On Wed, 03 Feb 2016 09:47:15 +0100 l...@gnu.org (Ludovic Courtès) wrote: > l...@gnu.org (Ludovic Courtès) skribis: > > > 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") > >