aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-26 15:43:06 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-26 15:43:06 +0100
commite27dc30e93e64e62183f0fc9172f5e4ae20614a2 (patch)
tree6e0d8c1780a92e4dcb797d3beb6bc151a7170987 /sci-libs/torchvision
parentsci-libs/pytorch: use python-single-r1 (diff)
downloadsci-e27dc30e93e64e62183f0fc9172f5e4ae20614a2.tar.gz
sci-e27dc30e93e64e62183f0fc9172f5e4ae20614a2.tar.bz2
sci-e27dc30e93e64e62183f0fc9172f5e4ae20614a2.zip
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@gentoo.org>
Diffstat (limited to 'sci-libs/torchvision')
-rw-r--r--sci-libs/torchvision/torchvision-0.11.2.ebuild9
1 files 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}"