Install this version:
emerge -a =dev-python/diffusers-0.40.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/diffusers-0.40.0
Or alternatively:
emerge --autounmask-write -a =dev-python/diffusers-0.40.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.40.0 | 8 | ~amd64 | 0 |
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="State-of-the-art diffusion models in PyTorch"
HOMEPAGE="https://github.com/huggingface/diffusers https://pypi.org/project/diffusers/"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}/gentoo-torch-version-fallback.patch"
)
# huggingface-hub is a runtime dep but not packaged in portage
RDEPEND="
dev-python/filelock[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
sci-ml/safetensors[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
"
dev-python/filelock[] dev-python/httpx[] dev-python/numpy[] dev-python/regex[] dev-python/requests[] sci-ml/safetensors[] dev-python/pillow[]