summaryrefslogtreecommitdiff
path: root/archivers/py-bitshuffle/files
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/py-bitshuffle/files')
-rw-r--r--archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c14
-rw-r--r--archivers/py-bitshuffle/files/patch-pyproject.toml11
-rw-r--r--archivers/py-bitshuffle/files/patch-setup.py11
3 files changed, 36 insertions, 0 deletions
diff --git a/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c b/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c
new file mode 100644
index 000000000000..2b15f0ebac8c
--- /dev/null
+++ b/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c
@@ -0,0 +1,14 @@
+--- lzf/lzf_filter.c.orig 2022-11-26 00:17:16 UTC
++++ lzf/lzf_filter.c
+@@ -51,11 +51,7 @@
+ macro H5_USE_16_API is set
+ */
+
+-#if H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 8 && (H5_VERS_RELEASE < 3 || !H5_USE_16_API)
+ #define H5PY_H5Z_NEWCLS 1
+-#else
+-#define H5PY_H5Z_NEWCLS 0
+-#endif
+
+ size_t lzf_filter(unsigned flags, size_t cd_nelmts,
+ const unsigned cd_values[], size_t nbytes,
diff --git a/archivers/py-bitshuffle/files/patch-pyproject.toml b/archivers/py-bitshuffle/files/patch-pyproject.toml
new file mode 100644
index 000000000000..620e4c320914
--- /dev/null
+++ b/archivers/py-bitshuffle/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2022-11-26 00:17:16 UTC
++++ pyproject.toml
+@@ -3,7 +3,7 @@ requires = [
+ requires = [
+ "setuptools>=0.7",
+ "Cython>=0.19",
+- "oldest-supported-numpy",
++ "numpy",
+ "h5py>=2.4.0",
+ ]
+
diff --git a/archivers/py-bitshuffle/files/patch-setup.py b/archivers/py-bitshuffle/files/patch-setup.py
new file mode 100644
index 000000000000..f96dcdf556d3
--- /dev/null
+++ b/archivers/py-bitshuffle/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2022-11-26 00:17:16 UTC
++++ setup.py
+@@ -371,7 +371,7 @@ class build_ext(build_ext_):
+ else:
+ openmpflag = "-fopenmp"
+ archi = platform.machine()
+- if archi in ("i386", "x86_64"):
++ if archi in ("amd64", "i386", "x86_64"):
+ compileflags = COMPILE_FLAGS + ["-march=%s" % self.march]
+ else:
+ compileflags = COMPILE_FLAGS + ["-mcpu=%s" % self.march]