[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WIP 1/8] gnu: ensure pip and setuptools are installed even for Python 2
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 |
* 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
- [WIP 0/9] python-build-system set 1: please review, Hartmut Goebel, 2016/10/10
- [WIP 3/8] guix: python-build-system: Import setuptools before calling `setup.py'., Hartmut Goebel, 2016/10/10
- [WIP 1/8] gnu: ensure pip and setuptools are installed even for Python 2.,
Hartmut Goebel <=
- [WIP 2/8] guix: build all Python packages with --single-version-externally-managed., Hartmut Goebel, 2016/10/10
- [WIP 5/8] guix: python-build-system: Add helpers for getting and setting PYTHONPATH., Hartmut Goebel, 2016/10/10
- [WIP 4/8] guix: python-build-system: Add option "#:use-setuptools?" (default true)., Hartmut Goebel, 2016/10/10
- [WIP 6/8] guix: python-build-system: Delete .egg-info file created in phase check., Hartmut Goebel, 2016/10/10
- [WIP 7/8] guix: Add lint-checker for packages which should be no inputs at all., Hartmut Goebel, 2016/10/10
- [WIP 8/8] lint: more packages to probably be a native input., Hartmut Goebel, 2016/10/10
- Re: [WIP 0/9] python-build-system set 1: please review, Hartmut Goebel, 2016/10/11
- Re: [WIP 0/9] python-build-system set 1: please review, Hartmut Goebel, 2016/10/11