all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add python-tables.
@ 2016-04-21 15:28 Ricardo Wurmus
  2016-04-24 19:12 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2016-04-21 15:28 UTC (permalink / raw)
  To: guix-devel@gnu.org

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

From d602df616b797de2777a1ffdf0dc48a1ca6edca5 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 21 Apr 2016 17:27:42 +0200
Subject: [PATCH] gnu: Add python-tables.

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3c8c3d7..bbab29e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5851,6 +5851,56 @@ printing of sub-tables by specifying a row range.")
 (define-public python2-prettytable
   (package-with-python2 python-prettytable))
 
+(define-public python-tables
+  (package
+    (name "python-tables")
+    (version "3.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "tables" version))
+       (sha256
+        (base32
+         "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--hdf5="
+                            (assoc-ref %build-inputs "hdf5")))
+       ;; FIXME: python-build-system does not pass configure-flags to "build"
+       ;; or "check", so we must override the build and check phases.
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'build
+           (lambda* (#:key inputs #:allow-other-keys)
+             (zero? (system* "python" "setup.py" "build"
+                             (string-append "--hdf5="
+                                            (assoc-ref inputs "hdf5"))))))
+         (replace 'check
+           (lambda* (#:key inputs #:allow-other-keys)
+             (zero? (system* "python" "setup.py" "check"
+                             (string-append "--hdf5="
+                                            (assoc-ref inputs "hdf5")))))))))
+    (propagated-inputs
+     `(("python-numexpr" ,python-numexpr)
+       ("python-numpy" ,python-numpy)))
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-cython" ,python-cython)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("hdf5" ,hdf5)
+       ("bzip2" ,bzip2)
+       ("zlib" ,zlib)))
+    (home-page "http://www.pytables.org/")
+    (synopsis "Hierarchical datasets for Python")
+    (description "PyTables is a package for managing hierarchical datasets and
+designed to efficently cope with extremely large amounts of data.")
+    (license bsd-3)))
+
+(define-public python2-tables
+  (package-with-python2 python-tables))
+
 (define-public python-pyasn1
   (package
     (name "python-pyasn1")
-- 
2.7.3

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

* Re: [PATCH] Add python-tables.
  2016-04-21 15:28 [PATCH] Add python-tables Ricardo Wurmus
@ 2016-04-24 19:12 ` Leo Famulari
  2016-06-13 15:02   ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2016-04-24 19:12 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel@gnu.org

On Thu, Apr 21, 2016 at 05:28:58PM +0200, Ricardo Wurmus wrote:
> Subject: [PATCH] gnu: Add python-tables.
  
> +    (arguments
> +     `(#:configure-flags
> +       (list (string-append "--hdf5="
> +                            (assoc-ref %build-inputs "hdf5")))
> +       ;; FIXME: python-build-system does not pass configure-flags to "build"
> +       ;; or "check", so we must override the build and check phases.

Does setting #:configure-flags have any effect at all?

Otherwise, looks okay!

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

* Re: [PATCH] Add python-tables.
  2016-04-24 19:12 ` Leo Famulari
@ 2016-06-13 15:02   ` Ricardo Wurmus
  0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2016-06-13 15:02 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel@gnu.org


Leo Famulari <leo@famulari.name> writes:

> On Thu, Apr 21, 2016 at 05:28:58PM +0200, Ricardo Wurmus wrote:
>> Subject: [PATCH] gnu: Add python-tables.
>   
>> +    (arguments
>> +     `(#:configure-flags
>> +       (list (string-append "--hdf5="
>> +                            (assoc-ref %build-inputs "hdf5")))
>> +       ;; FIXME: python-build-system does not pass configure-flags to "build"
>> +       ;; or "check", so we must override the build and check phases.
>
> Does setting #:configure-flags have any effect at all?

No, unfortunately, it does not.  I think we should improve the
python-build-system here.

Thanks for the review!  I’ll push it after removing the configure-flags
and addressing Ben’s question.

~~ Ricardo

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

end of thread, other threads:[~2016-06-13 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 15:28 [PATCH] Add python-tables Ricardo Wurmus
2016-04-24 19:12 ` Leo Famulari
2016-06-13 15:02   ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.