6b5c12bb5e
Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Horea Christian <chr@chymera.eu>
35 lines
893 B
Bash
35 lines
893 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python2_7 python3_6 )
|
|
|
|
inherit cmake-utils distutils-r1
|
|
|
|
DESCRIPTION="Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
|
HOMEPAGE="https://pytorch.org/"
|
|
SRC_URI="https://github.com/pytorch/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
|
|
DEPEND="
|
|
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
"
|
|
RDEPEND="
|
|
dev-python/cffi[${PYTHON_USEDEP}]
|
|
dev-python/future[${PYTHON_USEDEP}]
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
dev-python/six[${PYTHON_USEDEP}]
|
|
dev-python/typing[${PYTHON_USEDEP}]
|
|
dev-util/ninja
|
|
sci-libs/mkl-rt
|
|
|| ( dev-util/nvidia-cuda-toolkit dev-libs/cudnn )
|
|
"
|