# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{12..14} ) DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 prefix pypi cuda DESCRIPTION="CuPy: A NumPy-compatible array library accelerated by CUDA" HOMEPAGE="https://cupy.dev/" SRC_URI="$(pypi_sdist_url "${PN^}" "${PV}")" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+cuda" # CuPy 14 moved cuDNN, cuSPARSELt, and cuTENSOR integrations to separate # distributions; this core package follows its NumPy and CUDA-pathfinder bounds. DEPEND=" >=dev-python/numpy-2.0[${PYTHON_USEDEP}] =dev-python/cuda-pathfinder-1.3.4[${PYTHON_USEDEP}]