mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
21
dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
Normal file
21
dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
Normal 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():
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user