[125305] trunk/dports/python/py-tables
mmoll at macports.org
mmoll at macports.org
Fri Sep 12 15:34:47 PDT 2014
Revision: 125305
https://trac.macports.org/changeset/125305
Author: mmoll at macports.org
Date: 2014-09-12 15:34:47 -0700 (Fri, 12 Sep 2014)
Log Message:
-----------
py-tables: patch for latest version of cython. closes #44945
Modified Paths:
--------------
trunk/dports/python/py-tables/Portfile
Added Paths:
-----------
trunk/dports/python/py-tables/files/
trunk/dports/python/py-tables/files/patch-setup.py.diff
Modified: trunk/dports/python/py-tables/Portfile
===================================================================
--- trunk/dports/python/py-tables/Portfile 2014-09-12 22:24:21 UTC (rev 125304)
+++ trunk/dports/python/py-tables/Portfile 2014-09-12 22:34:47 UTC (rev 125305)
@@ -33,6 +33,8 @@
mpi.setup
if {${name} ne ${subport}} {
+ patchfiles patch-setup.py.diff
+
build.target build_ext
build.args --inplace \
--hdf5=${prefix} \
Added: trunk/dports/python/py-tables/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-tables/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-tables/files/patch-setup.py.diff 2014-09-12 22:34:47 UTC (rev 125305)
@@ -0,0 +1,26 @@
+--- setup.py.orig 2014-03-25 13:49:03.000000000 -0700
++++ setup.py 2014-09-11 17:07:03.000000000 -0700
+@@ -123,20 +123,20 @@
+ # Check if Cython is installed or not (requisite)
+ try:
+ from Cython.Distutils import build_ext
+- from Cython.Compiler.Main import Version
++ from Cython.Compiler.Main import version as cython_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 cython_version < 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': cython_version})
+
+ VERSION = open('VERSION').read().strip()
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140912/65440210/attachment.html>
More information about the macports-changes
mailing list