Diff pytorch-2.9.1 with a pytorch-2.10.0
| /usr/portage/sci-ml/pytorch/pytorch-2.10.0.ebuild 2026-02-04 11:18:07.004196621 +0300 | ||
|---|---|---|
| 1 |
# Copyright 2022-2025 Gentoo Authors |
|
| 1 |
# Copyright 2022-2026 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 | 6 |
DISTUTILS_USE_PEP517=setuptools |
| 7 |
PYTHON_COMPAT=( python3_{11..13} )
|
|
| 7 |
PYTHON_COMPAT=( python3_{11..14} )
|
|
| 8 | 8 |
DISTUTILS_SINGLE_IMPL=1 |
| 9 | 9 |
DISTUTILS_EXT=1 |
| 10 | 10 |
inherit distutils-r1 prefix |
| ... | ... | |
| 36 | 36 | |
| 37 | 37 |
PATCHES=( |
| 38 | 38 |
"${FILESDIR}"/${PN}-2.9.0-dontbuildagain.patch
|
| 39 |
"${FILESDIR}"/${PN}-2.7.1-cpp-extension-multilib.patch
|
|
| 39 |
"${FILESDIR}"/${P}-cpp-extension-multilib.patch
|
|
| 40 | 40 |
) |
| 41 | 41 | |
| 42 | 42 |
src_prepare() {
|
| ... | ... | |
| 54 | 54 | |
| 55 | 55 |
distutils-r1_src_prepare |
| 56 | 56 | |
| 57 |
# Get object file from caffe2 |
|
| 58 |
cp "${ESYSROOT}"/var/lib/caffe2/functorch.so functorch/functorch.so || die
|
|
| 59 | ||
| 60 | 57 |
hprefixify tools/setup_helpers/env.py |
| 61 | 58 |
} |
| 62 | 59 | |