1 |
commit: 6ed4d325a2563a195b41caef2c2c58ca18581e40 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 28 15:06:59 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 15:31:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ed4d325 |
7 |
|
8 |
dev-python/pytables: Bump to 3.8.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytables/Manifest | 1 + |
13 |
.../pytables/files/pytables-3.8.0-blosc2.patch | 30 ++++++++ |
14 |
dev-python/pytables/pytables-3.8.0.ebuild | 83 ++++++++++++++++++++++ |
15 |
3 files changed, 114 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytables/Manifest b/dev-python/pytables/Manifest |
18 |
index c456f554b2d0..ea9d491502ea 100644 |
19 |
--- a/dev-python/pytables/Manifest |
20 |
+++ b/dev-python/pytables/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST tables-3.7.0.tar.gz 8227955 BLAKE2B 0d5b7b765375c4787f1210138e5fd02e3c0ce429ef209a3a8d4fd3bc094f68486ab6f4d0a960ce86efea6991ed691ef2a3e9e8f37a49fe91cb8d6372cadea80e SHA512 eaa368d063b5fad87e6d0f9ab6f02da0b2a3542740a52fe8c2bb58e41121495d07b6d2710ad402a28891294aa61a11238c6a7e2cf2933a1bb11391b79cf4fd13 |
23 |
+DIST tables-3.8.0.tar.gz 8014052 BLAKE2B 28d120ad609ebc9ae8cd97286bb3fb9c484bd8a179edcf0de1b96e4400b7a21b4db835d94fae3aaee84924bd46b84b84da12c538b39517362d805651e7aa3aef SHA512 1616c00787a2e88ff3dc2aebe3a1b2ad428b5a8ea48fc94058b49c509f1c040b540b3f62551b16b3246d2fed58e0b33443cbdaaf1dfcba5a6eead5f3e8028029 |
24 |
|
25 |
diff --git a/dev-python/pytables/files/pytables-3.8.0-blosc2.patch b/dev-python/pytables/files/pytables-3.8.0-blosc2.patch |
26 |
new file mode 100644 |
27 |
index 000000000000..59403cdec12d |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytables/files/pytables-3.8.0-blosc2.patch |
30 |
@@ -0,0 +1,30 @@ |
31 |
+From 99a7f336635aaeb666ea8dc791743177a030dc18 Mon Sep 17 00:00:00 2001 |
32 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
33 |
+Date: Wed, 28 Dec 2022 15:53:08 +0100 |
34 |
+Subject: [PATCH] Workaround blosc2 detection via blosc2 package |
35 |
+ |
36 |
+--- |
37 |
+ setup.py | 4 ++-- |
38 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
39 |
+ |
40 |
+diff --git a/setup.py b/setup.py |
41 |
+index 966be028..2708deb9 100755 |
42 |
+--- a/setup.py |
43 |
++++ b/setup.py |
44 |
+@@ -262,11 +262,11 @@ if __name__ == "__main__": |
45 |
+ |
46 |
+ debug = "--debug" in sys.argv |
47 |
+ |
48 |
+- blosc2_inc, blosc2_lib = get_blosc2_directories() |
49 |
++ blosc2_inc, blosc2_lib = "", "" |
50 |
+ |
51 |
+ # Global variables |
52 |
+ lib_dirs = [blosc2_lib] |
53 |
+- inc_dirs = [Path("hdf5-blosc/src"), Path("hdf5-blosc2/src"), blosc2_inc] |
54 |
++ inc_dirs = [Path("hdf5-blosc/src"), Path("hdf5-blosc2/src")] |
55 |
+ optional_libs = [] |
56 |
+ copy_libs = [] |
57 |
+ |
58 |
+-- |
59 |
+2.39.0 |
60 |
+ |
61 |
|
62 |
diff --git a/dev-python/pytables/pytables-3.8.0.ebuild b/dev-python/pytables/pytables-3.8.0.ebuild |
63 |
new file mode 100644 |
64 |
index 000000000000..889a681566ed |
65 |
--- /dev/null |
66 |
+++ b/dev-python/pytables/pytables-3.8.0.ebuild |
67 |
@@ -0,0 +1,83 @@ |
68 |
+# Copyright 1999-2022 Gentoo Authors |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=8 |
72 |
+ |
73 |
+PYTHON_COMPAT=( python3_{8..11} ) |
74 |
+PYTHON_REQ_USE="threads(+)" |
75 |
+ |
76 |
+inherit distutils-r1 |
77 |
+ |
78 |
+MY_PN=tables |
79 |
+MY_P=${MY_PN}-${PV} |
80 |
+ |
81 |
+DESCRIPTION="Hierarchical datasets for Python" |
82 |
+HOMEPAGE=" |
83 |
+ https://www.pytables.org/ |
84 |
+ https://github.com/PyTables/PyTables/ |
85 |
+ https://pypi.org/project/tables/ |
86 |
+" |
87 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
88 |
+S=${WORKDIR}/${MY_P} |
89 |
+ |
90 |
+LICENSE="BSD" |
91 |
+SLOT="0" |
92 |
+KEYWORDS="~amd64" |
93 |
+IUSE="examples test" |
94 |
+RESTRICT="!test? ( test )" |
95 |
+ |
96 |
+DEPEND=" |
97 |
+ app-arch/bzip2:0= |
98 |
+ app-arch/lz4:0= |
99 |
+ >=app-arch/zstd-1.0.0:= |
100 |
+ >=dev-libs/c-blosc-1.11.1:0= |
101 |
+ dev-libs/c-blosc2:= |
102 |
+ dev-libs/lzo:2= |
103 |
+ >=dev-python/numpy-1.19[${PYTHON_USEDEP}] |
104 |
+ >=sci-libs/hdf5-1.8.4:= |
105 |
+" |
106 |
+RDEPEND=" |
107 |
+ ${DEPEND} |
108 |
+ >=dev-python/numexpr-2.6.2[${PYTHON_USEDEP}] |
109 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
110 |
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}] |
111 |
+" |
112 |
+BDEPEND=" |
113 |
+ >=dev-python/cython-0.21[${PYTHON_USEDEP}] |
114 |
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}] |
115 |
+ virtual/pkgconfig |
116 |
+ test? ( |
117 |
+ ${RDEPEND} |
118 |
+ ) |
119 |
+" |
120 |
+ |
121 |
+python_prepare_all() { |
122 |
+ local PATCHES=( |
123 |
+ "${FILESDIR}"/${P}-blosc2.patch |
124 |
+ ) |
125 |
+ |
126 |
+ export PYTABLES_NO_EMBEDDED_LIBS=1 |
127 |
+ export USE_PKGCONFIG=TRUE |
128 |
+ |
129 |
+ rm -r c-blosc/{blosc,internal-complibs} || die |
130 |
+ rm tables/libblosc2.so || die |
131 |
+ distutils-r1_python_prepare_all |
132 |
+} |
133 |
+ |
134 |
+python_compile() { |
135 |
+ distutils-r1_python_compile -j1 |
136 |
+} |
137 |
+ |
138 |
+python_test() { |
139 |
+ cd "${BUILD_DIR}"/lib* || die |
140 |
+ "${EPYTHON}" tables/tests/test_all.py -v || die |
141 |
+} |
142 |
+ |
143 |
+python_install_all() { |
144 |
+ distutils-r1_python_install_all |
145 |
+ |
146 |
+ if use examples; then |
147 |
+ dodoc -r contrib examples |
148 |
+ docompress -x /usr/share/doc/${PF}/{contrib,examples} |
149 |
+ fi |
150 |
+} |