pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-pytables Update to 3.1.1 and fix build with py...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb461c67d35f
branches:  trunk
changeset: 639646:eb461c67d35f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Sep 20 17:56:36 2014 +0000

description:
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:

 math/py-pytables/Makefile               |   6 ++++--
 math/py-pytables/distinfo               |   9 +++++----
 math/py-pytables/patches/patch-setup.py |  31 +++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r 2623a1e71920 -r eb461c67d35f math/py-pytables/Makefile
--- a/math/py-pytables/Makefile Sat Sep 20 12:00:53 2014 +0000
+++ b/math/py-pytables/Makefile Sat Sep 20 17:56:36 2014 +0000
@@ -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 @@
 PYSETUPINSTALLARGS=    ${PYSETUPBUILDARGS}
 PLIST_SUBST+=          PYVERSSUFFIX=${PYVERSSUFFIX:Q}
 
+USE_LANGUAGES=         c c++
+
 .include "options.mk"
 
 post-install:
diff -r 2623a1e71920 -r eb461c67d35f math/py-pytables/distinfo
--- a/math/py-pytables/distinfo Sat Sep 20 12:00:53 2014 +0000
+++ b/math/py-pytables/distinfo Sat Sep 20 17:56:36 2014 +0000
@@ -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 -r 2623a1e71920 -r eb461c67d35f math/py-pytables/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-pytables/patches/patch-setup.py   Sat Sep 20 17:56:36 2014 +0000
@@ -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()
+ 



Home | Main Index | Thread Index | Old Index