# 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} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 MY_PN=${PN%-bin} MY_PV=${PV} MY_WHEEL_AMD64="${MY_PN//-/_}-${MY_PV}-py3-none-manylinux_2_30_x86_64.whl" MY_WHEEL_ARM64="${MY_PN//-/_}-${MY_PV}-py3-none-manylinux_2_30_aarch64.whl" DESCRIPTION="Run:ai's fast multi-tensor PyTorch model streamer (binary wheel)" HOMEPAGE=" https://github.com/dsx-ai-factory/model-streamer https://pypi.org/project/runai-model-streamer/ " SRC_URI=" amd64? ( https://files.pythonhosted.org/packages/42/8e/56727805954fc8bc44f4b193d2aca28ff3ff46578474c8ce300b66299692/${MY_WHEEL_AMD64} ) arm64? ( https://files.pythonhosted.org/packages/b9/12/7fe4ed110506c992a1194983a816f16e0f2410416952207f89c895af7d04/${MY_WHEEL_ARM64} ) " S="${WORKDIR}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="-* ~amd64 ~arm64" # Object-storage backends are separate, unpackaged wheels; these architecture- # specific wheels support local-file streaming without them. RDEPEND=" >=sci-ml/pytorch-2.0.0[${PYTHON_SINGLE_USEDEP}]