unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Add python-drmaa.
@ 2015-04-01 10:03 Ricardo Wurmus
  2015-04-01 20:10 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2015-04-01 10:03 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

Hi Guix,

attached is a patch for python-drmaa.  The tests are disabled because
libdrmaa.so is needed, which is usually provided by the cluster
installation.  Users are normally expected to set DRMAA_LIBRARY_PATH to
the path of libdrmaa.so, e.g.

  DRMAA_LIBRARY_PATH="/opt/sge/lib/lx-amd64/libdrmaa.so"

I don't think we need to package all of Grid Engine to have use for
python-drmaa, but I'd like to hear what others think about this.

~~ Ricardo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-drmaa.patch --]
[-- Type: text/x-patch, Size: 1944 bytes --]

From e4e2a050b0c23af9e1d3e4f69ae67a3d510b734a Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 1 Apr 2015 11:59:01 +0200
Subject: [PATCH] gnu: Add python-drmaa.

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c5cae6d..dadd346 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2865,6 +2865,37 @@ etc.  The core of this module is a decorator factory.")
 (define-public python2-decorator
   (package-with-python2 python-decorator))
 
+(define-public python-drmaa
+  (package
+    (name "python-drmaa")
+    (version "0.7.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
+    (build-system python-build-system)
+    ;; The test suite requires libdrmaa which is provided by the cluster
+    ;; environment.  At runtime the environment variable DRMAA_LIBRARY_PATH
+    ;; should be set to the path of the libdrmaa library.
+    (arguments '(#:tests? #f))
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page "https://pypi.python.org/pypi/drmaa")
+    (synopsis "Python bindings for the DRMAA library")
+    (description
+      "A Python package for Distributed Resource Management (DRM) job
+submission and control.  This package is an implementation of the DRMAA 1.0
+Python language binding specification.")
+    (license bsd-3)))
+
+(define-public python2-drmaa
+  (package-with-python2 python-drmaa))
+
 (define-public python-ipython
   (package
     (name "python-ipython")
-- 
2.1.0


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

* Re: [PATCH] Add python-drmaa.
  2015-04-01 10:03 [PATCH] Add python-drmaa Ricardo Wurmus
@ 2015-04-01 20:10 ` Ludovic Courtès
  2015-04-01 20:31   ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2015-04-01 20:10 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> attached is a patch for python-drmaa.  The tests are disabled because
> libdrmaa.so is needed, which is usually provided by the cluster
> installation.  Users are normally expected to set DRMAA_LIBRARY_PATH to
> the path of libdrmaa.so, e.g.
>
>   DRMAA_LIBRARY_PATH="/opt/sge/lib/lx-amd64/libdrmaa.so"
>
> I don't think we need to package all of Grid Engine to have use for
> python-drmaa, but I'd like to hear what others think about this.

What’s DRMAA?  Is it free?  Part of “Grid Engine”?

Thanks,
Ludo’.

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

* Re: [PATCH] Add python-drmaa.
  2015-04-01 20:10 ` Ludovic Courtès
@ 2015-04-01 20:31   ` Ricardo Wurmus
  2015-04-02 12:53     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2015-04-01 20:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


Ludovic Courtès writes:

> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
>
>> attached is a patch for python-drmaa.  The tests are disabled because
>> libdrmaa.so is needed, which is usually provided by the cluster
>> installation.  Users are normally expected to set DRMAA_LIBRARY_PATH to
>> the path of libdrmaa.so, e.g.
>>
>>   DRMAA_LIBRARY_PATH="/opt/sge/lib/lx-amd64/libdrmaa.so"
>>
>> I don't think we need to package all of Grid Engine to have use for
>> python-drmaa, but I'd like to hear what others think about this.
>
> What’s DRMAA?  Is it free?  Part of “Grid Engine”?

DRMAA = Distributed Resource Management Application API.  The various
Grid Engine implementations (Sun/Oracle Grid Engine, Univa Grid Engine,
Open Grid Scheduler) come with a library providing this API.

At least Open Grid Scheduler is free software.

~~ Ricardo

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

* Re: [PATCH] Add python-drmaa.
  2015-04-01 20:31   ` Ricardo Wurmus
@ 2015-04-02 12:53     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2015-04-02 12:53 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> DRMAA = Distributed Resource Management Application API.  The various
> Grid Engine implementations (Sun/Oracle Grid Engine, Univa Grid Engine,
> Open Grid Scheduler) come with a library providing this API.
>
> At least Open Grid Scheduler is free software.

OK, thanks for explaining.  Then the approach of letting users set
DRMAA_LIBRARY_PATH to select their implementation sounds good to me.

Should python-drmaa provide a search path specification for this
variable?

> From e4e2a050b0c23af9e1d3e4f69ae67a3d510b734a Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Wed, 1 Apr 2015 11:59:01 +0200
> Subject: [PATCH] gnu: Add python-drmaa.
>
> * gnu/packages/python.scm (python-drmaa, python2-drmaa): New variables.

OK!

Thanks,
Ludo’.

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

end of thread, other threads:[~2015-04-02 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 10:03 [PATCH] Add python-drmaa Ricardo Wurmus
2015-04-01 20:10 ` Ludovic Courtès
2015-04-01 20:31   ` Ricardo Wurmus
2015-04-02 12:53     ` 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).