[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/104: gnu: ensure pip and setuptools are installed even for Python 2.
From: |
Hartmut Goebel |
Subject: |
02/104: gnu: ensure pip and setuptools are installed even for Python 2. |
Date: |
Tue, 15 Nov 2016 21:36:58 +0000 (UTC) |
htgoebel pushed a commit to branch python-build-system
in repository guix.
commit aaf75c890b5242d3ab3671766226bc53ab07049a
Author: Hartmut Goebel <address@hidden>
Date: Wed Sep 28 10:36:45 2016 +0200
gnu: ensure pip and setuptools are installed even for Python 2.
* gnu/packages/python.scm (python-2.7): Add "--with-ensurepip=install" to
configure-flags.
* doc/guix.texi (Python Modules): Document it.
---
doc/guix.texi | 9 ++++++---
gnu/packages/python.scm | 1 +
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index a3eba58..2691e24 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -13579,7 +13579,6 @@ 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.
-
@subsubsection Specifying Dependencies
@cindex inputs, for Python packages
@@ -13596,6 +13595,11 @@ following check list to determine which dependency
goes where.
@itemize
@item
+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.
+
address@hidden
Python dependencies required at run time go into
@code{propagated-inputs}. They are typically defined with the
@code{install_requires} keyword in @file{setup.py}, or in the
@@ -13609,8 +13613,7 @@ testing---e.g., those in @code{tests_require}---go into
propagated because they are not needed at run time, and (2) in a
cross-compilation context, it's the ``native'' input that we'd want.
-Examples are @code{setuptools}, which is usually needed only at build
-time, or the @code{pytest}, @code{mock}, and @code{nose} test
+Examples are the @code{pytest}, @code{mock}, and @code{nose} test
frameworks. Of course if any of these packages is also required at
run-time, it needs to go to @code{propagated-inputs}.
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 18e485a..b6aeb8c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -162,6 +162,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"))
- branch python-build-system created (now d464917), Hartmut Goebel, 2016/11/15
- 01/104: guix: python-build-system: Fix an outdated comment., Hartmut Goebel, 2016/11/15
- 04/104: guix: python-build-system: Import setuptools before calling `setup.py'., Hartmut Goebel, 2016/11/15
- 06/104: guix: python-build-system: Add helpers for getting and setting PYTHONPATH., Hartmut Goebel, 2016/11/15
- 02/104: gnu: ensure pip and setuptools are installed even for Python 2.,
Hartmut Goebel <=
- 07/104: guix: python-build-system: Delete .egg-info file created in phase check., Hartmut Goebel, 2016/11/15
- 05/104: guix: python-build-system: Add option "#:use-setuptools?" (default true)., Hartmut Goebel, 2016/11/15
- 03/104: guix: build all Python packages with --single-version-externally-managed., Hartmut Goebel, 2016/11/15
- 11/104: lint: more packages to probably be a native input., Hartmut Goebel, 2016/11/15
- 18/104: gnu: Remove needless inputs python-pip and python2-pip., Hartmut Goebel, 2016/11/15
- 08/104: guix: python-build-system: Add background about Python installation methods., Hartmut Goebel, 2016/11/15
- 09/104: gnu: python-2.7: Add all guix prefixes in PYTHONPATH to site-prefixes., Hartmut Goebel, 2016/11/15
- 22/104: gnu: Fix python inputs, part 3: all native-inputs become propagated-inputs., Hartmut Goebel, 2016/11/15
- 15/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 3), Hartmut Goebel, 2016/11/15
- 10/104: guix: Add lint-checker for packages which should be no inputs at all., Hartmut Goebel, 2016/11/15