commit: 45d65df5773c2bcaf1241e5c0881c7308d9c6740 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Oct 29 16:59:28 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 29 16:59:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d65df5
dev-python/pandas: fix detecting 32-bit arm (for skipping some tests) Bug: https://bugs.gentoo.org/818964 Signed-off-by: Sam James <sam <AT> gentoo.org> .../pandas/files/pandas-1.3.4-arm-tests.patch | 21 +++++++++++++++++++++ dev-python/pandas/pandas-1.3.4.ebuild | 5 +++++ 2 files changed, 26 insertions(+) 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 new file mode 100644 index 00000000000..c30d10460b6 --- /dev/null +++ b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/818964 +https://github.com/pandas-dev/pandas/commit/b0992ee2f4653c7d70ddbad6f2d172a4ef0bda32 + +From: Sam James <[email protected]> +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(): diff --git a/dev-python/pandas/pandas-1.3.4.ebuild b/dev-python/pandas/pandas-1.3.4.ebuild index 4c3b594f00c..4d866a1cf62 100644 --- a/dev-python/pandas/pandas-1.3.4.ebuild +++ b/dev-python/pandas/pandas-1.3.4.ebuild @@ -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" \
