Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/
Date: Fri, 29 Oct 2021 16:59:49
Message-Id: 1635526768.45d65df5773c2bcaf1241e5c0881c7308d9c6740.sam@gentoo
1 commit: 45d65df5773c2bcaf1241e5c0881c7308d9c6740
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 29 16:59:28 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 29 16:59:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d65df5
7
8 dev-python/pandas: fix detecting 32-bit arm (for skipping some tests)
9
10 Bug: https://bugs.gentoo.org/818964
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../pandas/files/pandas-1.3.4-arm-tests.patch | 21 +++++++++++++++++++++
14 dev-python/pandas/pandas-1.3.4.ebuild | 5 +++++
15 2 files changed, 26 insertions(+)
16
17 diff --git a/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
18 new file mode 100644
19 index 00000000000..c30d10460b6
20 --- /dev/null
21 +++ b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
22 @@ -0,0 +1,21 @@
23 +https://bugs.gentoo.org/818964
24 +https://github.com/pandas-dev/pandas/commit/b0992ee2f4653c7d70ddbad6f2d172a4ef0bda32
25 +
26 +From: Sam James <sam@×××××.info>
27 +Date: Fri, 29 Oct 2021 17:24:01 +0100
28 +Subject: [PATCH] Update is_platform_arm() to detect 32-bit arm and other
29 + variants (#44225)
30 +
31 +--- a/pandas/compat/__init__.py
32 ++++ b/pandas/compat/__init__.py
33 +@@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
34 + bool
35 + True if the running platform uses ARM architecture.
36 + """
37 +- return platform.machine() in ("arm64", "aarch64")
38 ++ return platform.machine() in ("arm64", "aarch64") or platform.machine().startswith(
39 ++ "armv"
40 ++ )
41 +
42 +
43 + def import_lzma():
44
45 diff --git a/dev-python/pandas/pandas-1.3.4.ebuild b/dev-python/pandas/pandas-1.3.4.ebuild
46 index 4c3b594f00c..4d866a1cf62 100644
47 --- a/dev-python/pandas/pandas-1.3.4.ebuild
48 +++ b/dev-python/pandas/pandas-1.3.4.ebuild
49 @@ -106,6 +106,11 @@ RDEPEND="${COMMON_DEPEND}
50 full-support? ( ${OPTIONAL_DEPEND} )
51 "
52
53 +PATCHES=(
54 + # Upstream patch to fix 32-bit ARM test detection
55 + "${FILESDIR}"/${P}-arm-tests.patch
56 +)
57 +
58 python_prepare_all() {
59 # Prevent un-needed download during build
60 sed -e "/^ 'sphinx.ext.intersphinx',/d" \