GNU bug report logs - #22808
Add a function to simplify many of the new python2-foo definitions

Previous Next

Package: guix;

Reported by: Christopher Allan Webber <cwebber <at> dustycloud.org>

Date: Thu, 25 Feb 2016 21:15:02 UTC

Severity: normal

Tags: patch

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andreas Enge <andreas <at> enge.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#22808: closed (Add a function to simplify many of the new
 python2-foo definitions)
Date: Thu, 31 Jan 2019 14:41:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 31 Jan 2019 15:39:55 +0100
with message-id <20190131143955.GA25613 <at> jurong>
and subject line Close
has caused the debbugs.gnu.org bug report #22808,
regarding Add a function to simplify many of the new python2-foo definitions
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
22808: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22808
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Allan Webber <cwebber <at> dustycloud.org>
To: bug-guix <at> gnu.org
Subject: Add a function to simplify many of the new python2-foo definitions
Date: Thu, 25 Feb 2016 13:14:25 -0800
Right now we have a lot of these that look very similar:

  (define-public python2-chardet
    (package
      (inherit (package-with-python2
                (strip-python2-variant python-chardet)))
      (native-inputs `(("python2-setuptools" ,python2-setuptools)))))

  (define-public python2-translitcodec
    (package
      (inherit (package-with-python2
                (strip-python2-variant python-translitcodec)))
      (native-inputs `(("python2-setuptools" ,python2-setuptools)))))

  (define-public python2-celery
    (let ((celery (package-with-python2
                   (strip-python2-variant python-celery))))
      (package
        (inherit celery)
        (native-inputs `(("python2-setuptools" ,python2-setuptools)
                         ("python2-unittest2" ,python2-unittest2)
                         ("python2-mock" ,python2-mock)
                         ,@(package-native-inputs celery))))))

Time for an abstraction?


[Message part 3 (message/rfc822, inline)]
From: Andreas Enge <andreas <at> enge.fr>
To: 22808-done <at> debbugs.gnu.org
Subject: Close
Date: Thu, 31 Jan 2019 15:39:55 +0100
This seems to be solved using package-with-python2.

Andreas



This bug report was last modified 6 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.