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 . + 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}