dev-python/spandrel - 0.4.2 (zGentoo)

Search

Install

Install this version:

emerge -a =dev-python/spandrel-0.4.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/spandrel-0.4.2

Or alternatively:

emerge --autounmask-write -a =dev-python/spandrel-0.4.2

Package Information

Description:
Universal library for loading pretrained PyTorch models
Homepage:
https://github.com/chaiNNer-org/spandrel https://pypi.org/project/spandrel/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.4.2 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Universal library for loading pretrained PyTorch models"
HOMEPAGE="https://github.com/chaiNNer-org/spandrel https://pypi.org/project/spandrel/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
	|| (
		sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
		sci-ml/pytorch-rocm[${PYTHON_SINGLE_USEDEP}]
		sci-ml/pytorch-cuda[${PYTHON_SINGLE_USEDEP}]
	)
	$(python_gen_cond_dep 'sci-ml/safetensors[${PYTHON_USEDEP}]')
"

Inherited Eclasses

Dependencies

RDEPEND

	|| (
		sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
		sci-ml/pytorch-rocm[${PYTHON_SINGLE_USEDEP}]
		sci-ml/pytorch-cuda[${PYTHON_SINGLE_USEDEP}]
	)
	$(python_gen_cond_dep 'sci-ml/safetensors[${PYTHON_USEDEP}]')