From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 12/13] gnu: Add python2-pygtk. Date: Fri, 21 Nov 2014 23:10:00 +0100 Message-ID: <8761e8nr2f.fsf@gnu.org> References: <1416548468-28421-1-git-send-email-bavier@member.fsf.org> <1416548468-28421-13-git-send-email-bavier@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrwP9-00047Z-9V for guix-devel@gnu.org; Fri, 21 Nov 2014 17:10:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrwOw-0008Qr-F8 for guix-devel@gnu.org; Fri, 21 Nov 2014 17:10:15 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:36058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrwOw-0008Pw-5N for guix-devel@gnu.org; Fri, 21 Nov 2014 17:10:02 -0500 In-Reply-To: <1416548468-28421-13-git-send-email-bavier@member.fsf.org> (Eric Bavier's message of "Thu, 20 Nov 2014 23:41:07 -0600") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Eric Bavier Cc: guix-devel@gnu.org, Eric Bavier Eric Bavier skribis: > * gnu/packages/gtk.scm (python2-pygtk): New variable. [...] > + #:phases (alist-cons-after > + 'install 'install-pth > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (site (string-append out "/lib/python" > + ,(version-major+minor > + (package-version pyth= on-2)) > + "/site-packages"))) > + (call-with-output-file (string-append site "/pygtk.= pth") > + (lambda (port) > + (format port "gtk-2.0~%"))))) Please add a comment below =E2=80=98lambda*=E2=80=99 explaining what=E2=80= =99s being done here. > + (synopsis "Python bindings for GTK") =E2=80=9CGTK+=E2=80=9D > + (description > + "PyGTK allows you to write full featured GTK programs in Python. I= t is > +targetted at GTK 2.x, and can be used in conjunction with gnome-python to > +write Gnome applications.") Should be =E2=80=9CGTK+=E2=80=9D and =E2=80=9CGNOME=E2=80=9D. OK to push with these changes! Ludo=E2=80=99.