pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/py-pytables



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Aug 18 20:30:02 UTC 2016

Modified Files:
        pkgsrc/math/py-pytables: Makefile PLIST distinfo
Added Files:
        pkgsrc/math/py-pytables/patches: patch-setup.py

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/math/py-pytables/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/math/py-pytables/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/math/py-pytables/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/math/py-pytables/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-pytables/Makefile
diff -u pkgsrc/math/py-pytables/Makefile:1.33 pkgsrc/math/py-pytables/Makefile:1.34
--- pkgsrc/math/py-pytables/Makefile:1.33       Tue Aug 16 02:42:48 2016
+++ pkgsrc/math/py-pytables/Makefile    Thu Aug 18 20:30:02 2016
@@ -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 @@ post-install:
        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)

Index: pkgsrc/math/py-pytables/PLIST
diff -u pkgsrc/math/py-pytables/PLIST:1.13 pkgsrc/math/py-pytables/PLIST:1.14
--- pkgsrc/math/py-pytables/PLIST:1.13  Tue Aug 16 14:12:35 2016
+++ pkgsrc/math/py-pytables/PLIST       Thu Aug 18 20:30:02 2016
@@ -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

Index: pkgsrc/math/py-pytables/distinfo
diff -u pkgsrc/math/py-pytables/distinfo:1.14 pkgsrc/math/py-pytables/distinfo:1.15
--- pkgsrc/math/py-pytables/distinfo:1.14       Tue Aug 16 02:42:48 2016
+++ pkgsrc/math/py-pytables/distinfo    Thu Aug 18 20:30:02 2016
@@ -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

Added files:

Index: pkgsrc/math/py-pytables/patches/patch-setup.py
diff -u /dev/null pkgsrc/math/py-pytables/patches/patch-setup.py:1.3
--- /dev/null   Thu Aug 18 20:30:02 2016
+++ pkgsrc/math/py-pytables/patches/patch-setup.py      Thu Aug 18 20:30:02 2016
@@ -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