mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-chemistry/MDAnalysis: Fix build with py3.13 and new numpy
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user