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.diff -r1.30 -r1.31 pkgsrc/math/py-pytables/Makefile
(wiz)
@@ -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 | |||
3 | DISTNAME= tables-3.0.0 | 3 | DISTNAME= tables-3.1.1 | |
4 | PKGNAME= ${PYPKGPREFIX}-py${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-py${DISTNAME} | |
5 | CATEGORIES= math python | 5 | CATEGORIES= math python | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.pytables.org/ | 9 | HOMEPAGE= http://www.pytables.org/ | |
10 | COMMENT= Database package for large amounts of data | 10 | COMMENT= Database package for large amounts of data | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5} | 13 | PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5} | |
14 | PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS} | 14 | PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS} | |
15 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} | 15 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} | |
16 | 16 | |||
17 | USE_LANGUAGES= c c++ | |||
18 | ||||
17 | .include "options.mk" | 19 | .include "options.mk" | |
18 | 20 | |||
19 | post-install: | 21 | post-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 | |||
25 | do-test: | 27 | do-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" |
@@ -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 | |||
3 | SHA1 (tables-3.0.0.tar.gz) = 0551bcb40cbb927efd74ba290a0ef4881dd18021 | 3 | SHA1 (tables-3.1.1.tar.gz) = c1ff909112b69b38b744cf81381496173c85c8af | |
4 | RMD160 (tables-3.0.0.tar.gz) = d5a502f5d2e13d71a007aa988d8d9fc7af8cb812 | 4 | RMD160 (tables-3.1.1.tar.gz) = f4c4c68c931fe8d3c5817f2619e699bab6fc7f07 | |
5 | Size (tables-3.0.0.tar.gz) = 6191726 bytes | 5 | Size (tables-3.1.1.tar.gz) = 6715786 bytes | |
6 | SHA1 (patch-setup.py) = a343bbf94ab7bcc46c81c5db7ca5a9afa85e306a |
$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()