commit: e27dc30e93e64e62183f0fc9172f5e4ae20614a2
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 26 14:43:06 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Dec 26 14:43:06 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e27dc30e
sci-libs/torchvision: use python-single-r1
Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --force
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/torchvision/torchvision-0.11.2.ebuild | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sci-libs/torchvision/torchvision-0.11.2.ebuild
b/sci-libs/torchvision/torchvision-0.11.2.ebuild
index 6c58eeb6e..4fe374173 100644
--- a/sci-libs/torchvision/torchvision-0.11.2.ebuild
+++ b/sci-libs/torchvision/torchvision-0.11.2.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_10 )
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -14,9 +15,10 @@
SRC_URI="https://github.com/pytorch/vision/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="cuda test"
+IUSE="cuda"
RDEPEND="
+ $(python_gen_cond_dep '
dev-python/av[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
@@ -24,13 +26,16 @@ RDEPEND="
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
sci-libs/pytorch[cuda?,python,${PYTHON_USEDEP}]
+ ')
media-video/ffmpeg
dev-qt/qtcore:5
"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
+ $(python_gen_cond_dep '
dev-python/mock[${PYTHON_USEDEP}]
+ ')
)"
S="${WORKDIR}/vision-${PV}"