zbyszek pushed to python-tables (epel7). "Use blosc on all archs"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri May 29 19:08:48 UTC 2015


From e14854e3e15cfd2d2c8321af3803b74d357ea2eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek at in.waw.pl>
Date: Thu, 8 Jan 2015 14:48:31 -0500
Subject: Use blosc on all archs


diff --git a/always-use-blosc.diff b/always-use-blosc.diff
new file mode 100644
index 0000000..48e0015
--- /dev/null
+++ b/always-use-blosc.diff
@@ -0,0 +1,16 @@
+diff --git ./tables-3.1.1/tables/utilsextension.pyx~ ./tables-3.1.1/tables/utilsextension.pyx
+index ebc0446d5f..01e5b3b790 100644
+--- tables-3.1.1/tables/utilsextension.pyx~
++++ tables-3.1.1/tables/utilsextension.pyx
+@@ -234,11 +234,6 @@ cdef register_blosc_():
+ # This function detects if blosc can work correctly on the current platform.
+ # This function has been written by Julian Taylor <jtaylor at ubuntu.com>.
+ def _arch_without_blosc():
+-    import platform
+-    arch = platform.machine().lower()
+-    for a in ["arm", "sparc", "mips"]:
+-        if a in arch:
+-            return True
+     return False
+ 
+ # Only register bloc compressor on platforms that actually support it.
diff --git a/python-tables.spec b/python-tables.spec
index 33bbf60..fc7088d 100644
--- a/python-tables.spec
+++ b/python-tables.spec
@@ -18,6 +18,7 @@ Release:        3%{?dist}.git%{shortcommit}
 Source0:        https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz
 
 Source1:        https://sourceforge.net/projects/pytables/files/pytables/%{version}/pytablesmanual-3.1.1.pdf
+Patch0:         always-use-blosc.diff
 
 License:        BSD
 Group:          Development/Languages
@@ -61,6 +62,7 @@ PyTables.
 
 %prep
 %setup -q -n PyTables-%{commit}
+%patch0 -p1
 echo "import sys, tables; sys.exit(tables.test())" > bench/check_all.py
 rm -rf %{py3dir}
 cp -a . %{py3dir}
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-tables.git/commit/?h=epel7&id=e14854e3e15cfd2d2c8321af3803b74d357ea2eb


More information about the scm-commits mailing list