Install this version:
emerge -a =dev-python/simpleitk-bin-2.5.8
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/simpleitk-bin-2.5.8
Or alternatively:
emerge --autounmask-write -a =dev-python/simpleitk-bin-2.5.8
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=no
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
MY_PN=${PN%-bin}
# One cp311-abi3 wheel supports every target. A source build compiles a bundled,
# multi-hour/multi-GB ITK unavailable in ::gentoo, hence -bin.
AMD64_WHEEL="${MY_PN}-${PV}-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl"
ARM64_WHEEL="${MY_PN}-${PV}-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl"
case ${ARCH} in
amd64) MY_WHEEL=${AMD64_WHEEL} ;;
arm64) MY_WHEEL=${ARM64_WHEEL} ;;
esac
DESCRIPTION="Simplified interface to the Insight Toolkit (ITK) for image analysis (binary)"
HOMEPAGE="
https://simpleitk.org/
https://github.com/SimpleITK/SimpleITK
https://pypi.org/project/simpleitk/
"
SRC_URI="
amd64? ( https://files.pythonhosted.org/packages/b8/be/66bb6a0119e86327e784fec32f586996760342d8cc53c3e5d143a8c34325/${AMD64_WHEEL} )
arm64? ( https://files.pythonhosted.org/packages/8c/b0/7dbece88a2a633941f6b29ce6885c7fa176ba5ea4e7e8d5e3eb9c7f970c9/${ARM64_WHEEL} )
"
S="${WORKDIR}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND="
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_USEDEP}]
')
"
QA_PREBUILT="usr/lib/python3.*/site-packages/SimpleITK/*.so*"
BDEPEND+="
$(python_gen_cond_dep '
dev-python/installer[${PYTHON_USEDEP}]
')
"
src_unpack() {
# Prevent default wheel unpacking; install it per implementation below.
mkdir -p "${S}/wheel" || die
cp "${DISTDIR}/${MY_WHEEL}" "${S}/wheel/" || die
}
python_install() {
# installer misses opt-2 bytecode; compile all levels explicitly.
${EPYTHON} -m installer --destdir="${D}" "${S}/wheel/${MY_WHEEL}" || die
python_optimize
}
$(python_gen_cond_dep ' dev-python/numpy[${PYTHON_USEDEP}] ')
$(python_gen_cond_dep ' dev-python/installer[${PYTHON_USEDEP}] ')