pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/py-pytables Add a patch to fix build with python-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7eedad7c5c5d
branches: trunk
changeset: 351304:7eedad7c5c5d
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Aug 18 20:30:02 2016 +0000
description:
Add a patch to fix build with python-3.x where cpuinfo does not seem
to provide flags.
Fix parallel installation of different python-versions of this package.
Bump PKGREVISION.
diffstat:
math/py-pytables/Makefile | 6 ++++--
math/py-pytables/PLIST | 4 ++--
math/py-pytables/distinfo | 3 ++-
math/py-pytables/patches/patch-setup.py | 28 ++++++++++++++++++++++++++++
4 files changed, 36 insertions(+), 5 deletions(-)
diffs (82 lines):
diff -r 7375016e2c6a -r 7eedad7c5c5d math/py-pytables/Makefile
--- a/math/py-pytables/Makefile Thu Aug 18 19:25:31 2016 +0000
+++ b/math/py-pytables/Makefile Thu Aug 18 20:30:02 2016 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2016/08/16 02:42:48 maya Exp $
+# $NetBSD: Makefile,v 1.34 2016/08/18 20:30:02 wiz Exp $
DISTNAME= tables-3.2.3
PKGNAME= ${PYPKGPREFIX}-py${DISTNAME}
+PKGREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_GITHUB:=PyTables/}
GITHUB_PROJECT= PyTables
@@ -28,7 +29,8 @@
cd ${DESTDIR}${PREFIX}/bin && \
mv pt2to3 pt2to3${PYVERSSUFFIX} && \
mv ptdump ptdump${PYVERSSUFFIX} && \
- mv ptrepack ptrepack${PYVERSSUFFIX}
+ mv ptrepack ptrepack${PYVERSSUFFIX} && \
+ mv pttree pttree${PYVERSSUFFIX}
do-test:
(cd ${WRKSRC}/tables/tests && ${PYTHONBIN} test_all.py)
diff -r 7375016e2c6a -r 7eedad7c5c5d math/py-pytables/PLIST
--- a/math/py-pytables/PLIST Thu Aug 18 19:25:31 2016 +0000
+++ b/math/py-pytables/PLIST Thu Aug 18 20:30:02 2016 +0000
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.13 2016/08/16 14:12:35 maya Exp $
+@comment $NetBSD: PLIST,v 1.14 2016/08/18 20:30:02 wiz Exp $
bin/pt2to3${PYVERSSUFFIX}
bin/ptdump${PYVERSSUFFIX}
bin/ptrepack${PYVERSSUFFIX}
-bin/pttree
+bin/pttree${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}/PKG-INFO
${PYSITELIB}/${EGG_FILE}/SOURCES.txt
${PYSITELIB}/${EGG_FILE}/dependency_links.txt
diff -r 7375016e2c6a -r 7eedad7c5c5d math/py-pytables/distinfo
--- a/math/py-pytables/distinfo Thu Aug 18 19:25:31 2016 +0000
+++ b/math/py-pytables/distinfo Thu Aug 18 20:30:02 2016 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.14 2016/08/16 02:42:48 maya Exp $
+$NetBSD: distinfo,v 1.15 2016/08/18 20:30:02 wiz Exp $
SHA1 (tables-3.2.3.tar.gz) = d7a2965821f436aabcf97e2851fe857c40e71cca
RMD160 (tables-3.2.3.tar.gz) = b0eaa61390a65d4e23f0499ca64409c20fd23bae
SHA512 (tables-3.2.3.tar.gz) = 565ae648a81daa6e9eb7d8dfbecef4f0b195122dd2c60a99f89f903f7366515997c302e649441f68b20c13b0f7ccff1e97971cc16b4bd56b579a069d92247e9a
Size (tables-3.2.3.tar.gz) = 3821258 bytes
SHA1 (patch-c-blosc_blosc_blosc.c) = 53751c1242e9d2e3057bb1eef0f075f2fdd97c3f
+SHA1 (patch-setup.py) = 51e92744674fbc8b64e3dc150fcf9927efebc821
diff -r 7375016e2c6a -r 7eedad7c5c5d 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 Thu Aug 18 20:30:02 2016 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-setup.py,v 1.3 2016/08/18 20:30:02 wiz Exp $
+
+--- setup.py.orig 2016-07-03 11:46:48.000000000 +0000
++++ setup.py
+@@ -793,23 +793,6 @@ if 'BLOSC' not in optional_libs:
+ finally:
+ os.remove(fd.name)
+
+- # Detection code for SSE2/AVX2 only works for gcc/clang, not for MSVC yet
+- # SSE2
+- if ('sse2' in cpu_info['flags'] and
+- compiler_has_flags(compiler, ["-msse2"])):
+- print('SSE2 detected')
+- CFLAGS.append('-DSHUFFLE_SSE2_ENABLED')
+- CFLAGS.append('-msse2')
+- blosc_sources += [f for f in glob.glob('c-blosc/blosc/*.c')
+- if 'sse2' in f]
+- # AVX2
+- if ('avx2' in cpu_info['flags'] and
+- compiler_has_flags(compiler, ["-mavx2"])):
+- print('AVX2 detected')
+- CFLAGS.append('-DSHUFFLE_AVX2_ENABLED')
+- CFLAGS.append('-mavx2')
+- blosc_sources += [f for f in glob.glob('c-blosc/blosc/*.c')
+- if 'avx2' in f]
+ else:
+ ADDLIBS += ['blosc']
+
Home |
Main Index |
Thread Index |
Old Index