Sat Sep 20 17:56:36 2014 UTC ()
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.


(wiz)
diff -r1.30 -r1.31 pkgsrc/math/py-pytables/Makefile
diff -r1.11 -r1.12 pkgsrc/math/py-pytables/distinfo
diff -r0 -r1.1 pkgsrc/math/py-pytables/patches/patch-setup.py

cvs diff -r1.30 -r1.31 pkgsrc/math/py-pytables/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/math/py-pytables/Attic/Makefile 2014/01/21 16:32:42 1.30
+++ pkgsrc/math/py-pytables/Attic/Makefile 2014/09/20 17:56:36 1.31
@@ -1,29 +1,31 @@ @@ -1,29 +1,31 @@
1# $NetBSD: Makefile,v 1.30 2014/01/21 16:32:42 wiz Exp $ 1# $NetBSD: Makefile,v 1.31 2014/09/20 17:56:36 wiz Exp $
2 2
3DISTNAME= tables-3.0.0 3DISTNAME= tables-3.1.1
4PKGNAME= ${PYPKGPREFIX}-py${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-py${DISTNAME}
5CATEGORIES= math python 5CATEGORIES= math python
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.pytables.org/ 9HOMEPAGE= http://www.pytables.org/
10COMMENT= Database package for large amounts of data 10COMMENT= Database package for large amounts of data
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5} 13PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5}
14PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS} 14PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS}
15PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} 15PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
16 16
 17USE_LANGUAGES= c c++
 18
17.include "options.mk" 19.include "options.mk"
18 20
19post-install: 21post-install:
20 cd ${DESTDIR}${PREFIX}/bin && \ 22 cd ${DESTDIR}${PREFIX}/bin && \
21 mv pt2to3 pt2to3${PYVERSSUFFIX} && \ 23 mv pt2to3 pt2to3${PYVERSSUFFIX} && \
22 mv ptdump ptdump${PYVERSSUFFIX} && \ 24 mv ptdump ptdump${PYVERSSUFFIX} && \
23 mv ptrepack ptrepack${PYVERSSUFFIX} 25 mv ptrepack ptrepack${PYVERSSUFFIX}
24 26
25do-test: 27do-test:
26 (cd ${WRKSRC}/tables/tests && ${PYTHONBIN} test_all.py) 28 (cd ${WRKSRC}/tables/tests && ${PYTHONBIN} test_all.py)
27 29
28.include "../../lang/python/distutils.mk" 30.include "../../lang/python/distutils.mk"
29.include "../../devel/hdf5/buildlink3.mk" 31.include "../../devel/hdf5/buildlink3.mk"

cvs diff -r1.11 -r1.12 pkgsrc/math/py-pytables/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/math/py-pytables/Attic/distinfo 2014/01/21 16:32:42 1.11
+++ pkgsrc/math/py-pytables/Attic/distinfo 2014/09/20 17:56:36 1.12
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.11 2014/01/21 16:32:42 wiz Exp $ 1$NetBSD: distinfo,v 1.12 2014/09/20 17:56:36 wiz Exp $
2 2
3SHA1 (tables-3.0.0.tar.gz) = 0551bcb40cbb927efd74ba290a0ef4881dd18021 3SHA1 (tables-3.1.1.tar.gz) = c1ff909112b69b38b744cf81381496173c85c8af
4RMD160 (tables-3.0.0.tar.gz) = d5a502f5d2e13d71a007aa988d8d9fc7af8cb812 4RMD160 (tables-3.1.1.tar.gz) = f4c4c68c931fe8d3c5817f2619e699bab6fc7f07
5Size (tables-3.0.0.tar.gz) = 6191726 bytes 5Size (tables-3.1.1.tar.gz) = 6715786 bytes
 6SHA1 (patch-setup.py) = a343bbf94ab7bcc46c81c5db7ca5a9afa85e306a

File Added: pkgsrc/math/py-pytables/patches/Attic/patch-setup.py
$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()