unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Add Python tools.
@ 2014-02-11 23:04 Cyril Roelandt
  2014-02-11 23:04 ` [PATCH 1/2] gnu: Add virtualenv Cyril Roelandt
  2014-02-11 23:04 ` [PATCH 2/2] gnu: Add pip Cyril Roelandt
  0 siblings, 2 replies; 5+ messages in thread
From: Cyril Roelandt @ 2014-02-11 23:04 UTC (permalink / raw)
  To: guix-devel

These two patches add tools commonly used by Python developers: virtualenv and
pip.

Cyril Roelandt.
---
Cyril Roelandt (2):
  gnu: Add virtualenv.
  gnu: Add pip.

 gnu/packages/python.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

-- 
1.8.4.rc3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] gnu: Add virtualenv.
  2014-02-11 23:04 [PATCH 0/2] Add Python tools Cyril Roelandt
@ 2014-02-11 23:04 ` Cyril Roelandt
  2014-02-12 13:04   ` Ludovic Courtès
  2014-02-11 23:04 ` [PATCH 2/2] gnu: Add pip Cyril Roelandt
  1 sibling, 1 reply; 5+ messages in thread
From: Cyril Roelandt @ 2014-02-11 23:04 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-virtualenv, python2-virtualenv): New variables.
---
 gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 44e3c14..7e28eda 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -198,6 +198,32 @@ data types.")
      "\n\nThis wrapper package provides symbolic links to the python binaries
       without version suffix."))))
 
+(define-public python-virtualenv
+  (package
+    (name "python-virtualenv")
+    (version "1.11.2")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append
+            "https://pypi.python.org/packages/source/v/virtualenv/"
+            "virtualenv-" version ".tar.gz"))
+      (sha256
+       (base32
+        "1pxn5g445xcp3vhcg67dnf67vrnpjrfcl1w700ispi581xhs301h"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ; See https://github.com/pypa/virtualenv/pull/561
+    (home-page "http://www.virtualenv.org/")
+    (synopsis "A tool to create isolated Python environments.")
+    (description "
+Virtualenv creates an environment that has its own installation directories,
+that doesn’t share libraries with other virtualenv environments (and optionally
+doesn’t access the globally installed libraries either.")
+    (license x11)))
+
+(define-public python2-virtualenv
+  (package-with-python2 python-virtualenv))
 
 (define-public python-pytz
   (package
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] gnu: Add pip.
  2014-02-11 23:04 [PATCH 0/2] Add Python tools Cyril Roelandt
  2014-02-11 23:04 ` [PATCH 1/2] gnu: Add virtualenv Cyril Roelandt
@ 2014-02-11 23:04 ` Cyril Roelandt
  2014-02-12 13:06   ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Cyril Roelandt @ 2014-02-11 23:04 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-pip, python2-pip): New variables.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7e28eda..6144925 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -198,6 +198,36 @@ data types.")
      "\n\nThis wrapper package provides symbolic links to the python binaries
       without version suffix."))))
 
+(define-public python-pip
+  (package
+    (name "python-pip")
+    (version "1.5.2")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append
+            "https://pypi.python.org/packages/source/p/pip/pip-"
+            version ".tar.gz"))
+      (sha256
+       (base32
+        "0f7p6c2z78fcawri2y8aa8r3rzzq06zn94mkvc7a9lsjwq43x2ia"))))
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ; The tests try to access the Internet.
+    (home-page "http://www.pip-installer.org")
+    (synopsis "A tool for installing and managing Python packages.")
+    (description
+     "pip is a replacement for easy_install, and is intended to be an improved
+Python package installer.  It integrates with virtualenv, doesn't do partial
+installs, can save package state for replaying, can install from non-egg
+sources, and can install from version control repositories.")
+    (license x11)))
+
+(define-public python2-pip
+  (package-with-python2 python-pip))
+
 (define-public python-virtualenv
   (package
     (name "python-virtualenv")
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] gnu: Add virtualenv.
  2014-02-11 23:04 ` [PATCH 1/2] gnu: Add virtualenv Cyril Roelandt
@ 2014-02-12 13:04   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-02-12 13:04 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python-virtualenv, python2-virtualenv): New variables.

OK, please push.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] gnu: Add pip.
  2014-02-11 23:04 ` [PATCH 2/2] gnu: Add pip Cyril Roelandt
@ 2014-02-12 13:06   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-02-12 13:06 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python-pip, python2-pip): New variables.

Looks good to me.  One question though:

> +    (arguments
> +     `(#:tests? #f)) ; The tests try to access the Internet.

How hard would it be to either skip the tests that access the network,
or patch them to use localhost instead of some external server?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-12 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 23:04 [PATCH 0/2] Add Python tools Cyril Roelandt
2014-02-11 23:04 ` [PATCH 1/2] gnu: Add virtualenv Cyril Roelandt
2014-02-12 13:04   ` Ludovic Courtès
2014-02-11 23:04 ` [PATCH 2/2] gnu: Add pip Cyril Roelandt
2014-02-12 13:06   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).