commit: be944ba847c0a79d8e858691f84cc7b191c496f2
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 12 15:21:38 2025 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Tue Aug 12 15:21:38 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be944ba8
sci-chemistry/MDAnalysis: Fix build with py3.13 and new numpy
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>
sci-chemistry/MDAnalysis/MDAnalysis-2.9.0.ebuild | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sci-chemistry/MDAnalysis/MDAnalysis-2.9.0.ebuild
b/sci-chemistry/MDAnalysis/MDAnalysis-2.9.0.ebuild
index bf7d351fee00..9e652df57daf 100644
--- a/sci-chemistry/MDAnalysis/MDAnalysis-2.9.0.ebuild
+++ b/sci-chemistry/MDAnalysis/MDAnalysis-2.9.0.ebuild
@@ -41,3 +41,13 @@ RDEPEND="
BDEPEND="${RDEPEND}"
distutils_enable_tests pytest
+
+src_prepare() {
+ # fix deprecated NPY API
+ sed \
+ -e "s:NPY_IN_ARRAY:NPY_ARRAY_IN_ARRAY:g" \
+ -e "s:NPY_ALIGNED:NPY_ARRAY_ALIGNED:g" \
+ -e "s:NPY_ENSURECOPY:NPY_ARRAY_ENSURECOPY:g" \
+ -i MDAnalysis/lib/src/transformations/transformations.c || die
+ distutils-r1_src_prepare
+}