Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 911421 | Differences between
and this patch

Collapse All | Expand All

(-)gentoo/sci-libs/caffe2/caffe2-2.0.1-r2.ebuild (-1 / +15 lines)
Lines 4-10 Link Here
4
EAPI=8
4
EAPI=8
5
5
6
PYTHON_COMPAT=( python3_{9..11} )
6
PYTHON_COMPAT=( python3_{9..11} )
7
inherit python-single-r1 cmake cuda flag-o-matic
7
inherit python-single-r1 cmake cuda flag-o-matic prefix
8
8
9
MYPN=pytorch
9
MYPN=pytorch
10
MYP=${MYPN}-${PV}
10
MYP=${MYPN}-${PV}
Lines 97-102 Link Here
97
	pushd torch/csrc/jit/serialization || die
97
	pushd torch/csrc/jit/serialization || die
98
	flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die
98
	flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die
99
	popd
99
	popd
100
	# prefixify the hardcoded paths, after all patches are applied
101
	hprefixify \
102
		aten/CMakeLists.txt \
103
		caffe2/CMakeLists.txt \
104
		cmake/Metal.cmake \
105
		cmake/Modules/*.cmake \
106
		cmake/Modules_CUDA_fix/FindCUDNN.cmake \
107
		cmake/Modules_CUDA_fix/upstream/FindCUDA/make2cmake.cmake \
108
		cmake/Modules_CUDA_fix/upstream/FindPackageHandleStandardArgs.cmake \
109
		cmake/public/LoadHIP.cmake \
110
		cmake/public/cuda.cmake \
111
		cmake/Dependencies.cmake \
112
		torch/CMakeLists.txt \
113
		CMakeLists.txt
100
}
114
}
101
115
102
src_configure() {
116
src_configure() {
(-)gentoo/sci-libs/pytorch/pytorch-2.0.1.ebuild (-1 / +3 lines)
Lines 7-13 Link Here
7
PYTHON_COMPAT=( python3_{9..11} )
7
PYTHON_COMPAT=( python3_{9..11} )
8
DISTUTILS_SINGLE_IMPL=1
8
DISTUTILS_SINGLE_IMPL=1
9
DISTUTILS_EXT=1
9
DISTUTILS_EXT=1
10
inherit distutils-r1
10
inherit distutils-r1 prefix
11
11
12
DESCRIPTION="Tensors and Dynamic neural networks in Python"
12
DESCRIPTION="Tensors and Dynamic neural networks in Python"
13
HOMEPAGE="https://pytorch.org/"
13
HOMEPAGE="https://pytorch.org/"
Lines 49-54 Link Here
49
		tools/setup_helpers/env.py \
49
		tools/setup_helpers/env.py \
50
		|| die
50
		|| die
51
	distutils-r1_src_prepare
51
	distutils-r1_src_prepare
52
53
	hprefixify tools/setup_helpers/env.py
52
}
54
}
53
55
54
src_compile() {
56
src_compile() {

Return to bug 911421