dev-python/pandas: fix detecting 32-bit arm (for skipping some tests)

Bug: https://bugs.gentoo.org/818964
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-10-29 17:59:28 +01:00
parent b079d849f9
commit 45d65df577
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
https://bugs.gentoo.org/818964
https://github.com/pandas-dev/pandas/commit/b0992ee2f4653c7d70ddbad6f2d172a4ef0bda32
From: Sam James <sam@cmpct.info>
Date: Fri, 29 Oct 2021 17:24:01 +0100
Subject: [PATCH] Update is_platform_arm() to detect 32-bit arm and other
variants (#44225)
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
bool
True if the running platform uses ARM architecture.
"""
- return platform.machine() in ("arm64", "aarch64")
+ return platform.machine() in ("arm64", "aarch64") or platform.machine().startswith(
+ "armv"
+ )
def import_lzma():

View File

@@ -106,6 +106,11 @@ RDEPEND="${COMMON_DEPEND}
full-support? ( ${OPTIONAL_DEPEND} )
"
PATCHES=(
# Upstream patch to fix 32-bit ARM test detection
"${FILESDIR}"/${P}-arm-tests.patch
)
python_prepare_all() {
# Prevent un-needed download during build
sed -e "/^ 'sphinx.ext.intersphinx',/d" \