From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [WIP 1/8] gnu: ensure pip and setuptools are installed even for Python 2. Date: Mon, 10 Oct 2016 16:57:12 +0200 Message-ID: <1476111439-20812-2-git-send-email-h.goebel@crazy-compilers.com> References: <1476111439-20812-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btc19-0008B2-PY for guix-devel@gnu.org; Mon, 10 Oct 2016 10:57:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btc15-0000ZL-Io for guix-devel@gnu.org; Mon, 10 Oct 2016 10:57:26 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:35191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btc15-0000Yz-By for guix-devel@gnu.org; Mon, 10 Oct 2016 10:57:23 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3st3BV5sR5z3hjQN for ; Mon, 10 Oct 2016 16:57:22 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3st3BV5mpQzvkWM for ; Mon, 10 Oct 2016 16:57:22 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id v1lM_DXNr50C for ; Mon, 10 Oct 2016 16:57:22 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-147-59.dynamic.mnet-online.de [188.174.147.59]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 10 Oct 2016 16:57:22 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9C82460E7E for ; Mon, 10 Oct 2016 16:57:19 +0200 (CEST) In-Reply-To: <1476111439-20812-1-git-send-email-h.goebel@crazy-compilers.com> 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" To: guix-devel@gnu.org * gnu/packages/python.scm (python-2.7): Add "--with-ensurepip=install" to configure-flags. * doc/guix.texi (Python Modules): Document it. --- doc/guix.texi | 3 +++ gnu/packages/python.scm | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 57821c5..02f7486 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12250,6 +12250,9 @@ for instance, the module python-dateutil is packaged under the names starts with @code{py} (e.g. @code{pytz}), we keep it and prefix it as described above. +We currently package Python 2 with @code{setuptools} and @code{pip} +installed like Python 3.4 has per default. Thus you don't need to +specify either of these as an input. @node Perl Modules @subsection Perl Modules diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9b62241..2bdac60 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -156,6 +156,7 @@ #:configure-flags (list "--enable-shared" ;allow embedding "--with-system-ffi" ;build ctypes + "--with-ensurepip=install" ;install pip and setuptools (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")) -- 2.7.4