summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-09-20 17:56:36 +0000
committerwiz <wiz@pkgsrc.org>2014-09-20 17:56:36 +0000
commitefd6013c69a337e9636cde23e685db82d1e540cf (patch)
tree2c370b7467af59ef8e542b1ae98ce3f081552750 /math
parentbbad9dfd67bd812e556d1d41333b5b7c0a923034 (diff)
downloadpkgsrc-efd6013c69a337e9636cde23e685db82d1e540cf.tar.gz
Update to 3.1.1 and fix build with py-cython-0.20+.
We are happy to announce PyTables 3.1.1. This is a bug-fix release that addresses a critical bug that make PyTables unusable on some platforms. What's new ========== - Fixed a critical bug that caused an exception at import time. The error was triggered when a bug in long-double detection is detected in the HDF5 library (see :issue:`275`) and numpy_ does not expose `float96` or `float128`. Closes :issue:`344`. - The internal Blosc_ library has been updated to version 1.3.5. This fixes a false buffer overrun condition that made c-blosc to fail, even if the problem was not real. As always, a large amount of bugs have been addressed and squashed as well.
Diffstat (limited to 'math')
-rw-r--r--math/py-pytables/Makefile6
-rw-r--r--math/py-pytables/distinfo9
-rw-r--r--math/py-pytables/patches/patch-setup.py31
3 files changed, 40 insertions, 6 deletions
diff --git a/math/py-pytables/Makefile b/math/py-pytables/Makefile
index 329c044c1b9..9482ac7e6dc 100644
--- a/math/py-pytables/Makefile
+++ b/math/py-pytables/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2014/01/21 16:32:42 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2014/09/20 17:56:36 wiz Exp $
-DISTNAME= tables-3.0.0
+DISTNAME= tables-3.1.1
PKGNAME= ${PYPKGPREFIX}-py${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/}
@@ -14,6 +14,8 @@ PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5}
PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS}
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
+USE_LANGUAGES= c c++
+
.include "options.mk"
post-install:
diff --git a/math/py-pytables/distinfo b/math/py-pytables/distinfo
index bf40e961256..e5ecb368955 100644
--- a/math/py-pytables/distinfo
+++ b/math/py-pytables/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2014/01/21 16:32:42 wiz Exp $
+$NetBSD: distinfo,v 1.12 2014/09/20 17:56:36 wiz Exp $
-SHA1 (tables-3.0.0.tar.gz) = 0551bcb40cbb927efd74ba290a0ef4881dd18021
-RMD160 (tables-3.0.0.tar.gz) = d5a502f5d2e13d71a007aa988d8d9fc7af8cb812
-Size (tables-3.0.0.tar.gz) = 6191726 bytes
+SHA1 (tables-3.1.1.tar.gz) = c1ff909112b69b38b744cf81381496173c85c8af
+RMD160 (tables-3.1.1.tar.gz) = f4c4c68c931fe8d3c5817f2619e699bab6fc7f07
+Size (tables-3.1.1.tar.gz) = 6715786 bytes
+SHA1 (patch-setup.py) = a343bbf94ab7bcc46c81c5db7ca5a9afa85e306a
diff --git a/math/py-pytables/patches/patch-setup.py b/math/py-pytables/patches/patch-setup.py
new file mode 100644
index 00000000000..12c61e175f7
--- /dev/null
+++ b/math/py-pytables/patches/patch-setup.py
@@ -0,0 +1,31 @@
+$NetBSD: patch-setup.py,v 1.1 2014/09/20 17:56:36 wiz Exp $
+
+Fix build with cython-0.20++.
+
+--- setup.py.orig 2014-03-25 20:49:03.000000000 +0000
++++ setup.py
+@@ -122,21 +122,21 @@ if not has_setuptools:
+
+ # Check if Cython is installed or not (requisite)
+ try:
++ from Cython import __version__ as CythonVersion
+ from Cython.Distutils import build_ext
+- from Cython.Compiler.Main import Version
+ cmdclass['build_ext'] = build_ext
+ except ImportError:
+ exit_with_error(
+ "You need %(pkgname)s %(pkgver)s or greater to compile PyTables!"
+ % {'pkgname': 'Cython', 'pkgver': min_cython_version})
+
+-if Version.version < min_cython_version:
++if CythonVersion < min_cython_version:
+ exit_with_error(
+ "At least Cython %s is needed so as to generate extensions!"
+ % (min_cython_version))
+ else:
+ print("* Found %(pkgname)s %(pkgver)s package installed."
+- % {'pkgname': 'Cython', 'pkgver': Version.version})
++ % {'pkgname': 'Cython', 'pkgver': CythonVersion})
+
+ VERSION = open('VERSION').read().strip()
+