commit:     4eb8205d726b5460edf6a0071e44170b4ad06f38
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  8 18:44:22 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 18:45:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eb8205d

sci-libs/pytorch: add 2.2.1

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/pytorch/Manifest                                   |  1 +
 sci-libs/pytorch/files/pytorch-2.2.1-emptyso.patch          | 13 +++++++++++++
 sci-libs/pytorch/pytorch-2.1.2-r1.ebuild                    |  2 +-
 .../{pytorch-2.1.2-r1.ebuild => pytorch-2.2.1.ebuild}       |  4 ++--
 4 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/sci-libs/pytorch/Manifest b/sci-libs/pytorch/Manifest
index a05e285f98e0..2a63d8018442 100644
--- a/sci-libs/pytorch/Manifest
+++ b/sci-libs/pytorch/Manifest
@@ -1,3 +1,4 @@
 DIST pytorch-1.13.1.tar.gz 108279745 BLAKE2B 
75de03b74dfdaf8d8fb5ea743fcc0c1b0e408a714ad4160c487921220a7b1755e5fa6e587e6bbc8c9f34dd75e096d2e6dd69c80d24821835fff6c833314434d3
 SHA512 
f16f89d027efade11d057245cad5b69a390e88b458398310ae30de2dbff7c8fd7f1165be7b8da7ea989c81ac3f5a66c5cb9050610e441a97c83fb8aa28c0bd62
 DIST pytorch-2.0.1.tar.gz 111335778 BLAKE2B 
7a10cc2b2d5e2422aef7e060a0c3a62ca5c7460c6e0b9becade9b98939501975c74ed5a175a653731f43ca824d2c9bd31f41d1f633c2b139779ab23d5331e9ce
 SHA512 
2309a22b3be3ccdb36d8d9781a59a7bdcc2fdb8d95ada205702ec77862480f0cbb12cd5d6b8cd3114d01a6e33b7743d0fe9de93debf37138ca5c14403cdb0c43
 DIST pytorch-2.1.2.tar.gz 116316469 BLAKE2B 
c5a55ee264bc3477d3556ba6376b5591117e992e56e0dd0c9ba93d12526e2727f7840f6f1e0730a38223b6492c9556840c4ebf22ffd220e97225c2abff303747
 SHA512 
a8961d78ad785b13c959a0612563a60e0de17a7c8bb9822ddea9a24072796354d07e81c47b6cc8761b21a6448845b088cf80e1661d9e889b0ed5474d3dc76756
+DIST pytorch-2.2.1.tar.gz 116370903 BLAKE2B 
7d08e80f91bad76fba1751c30a34bebfe7145058b7758c0d47112702263a80666f70687a8860744725c6aa995e854f766a5bfa4644c23e5635e7e08c8d63a6e9
 SHA512 
f19ebcf59d183c3348946ba7cfcab2bc4ca93785863b8edc39dba5772083a7b0425ccb4f92a8df4dc0d18246c75e8ff812993161467fbf9dc48d7fb28a1e26f1

diff --git a/sci-libs/pytorch/files/pytorch-2.2.1-emptyso.patch 
b/sci-libs/pytorch/files/pytorch-2.2.1-emptyso.patch
new file mode 100644
index 000000000000..2b4839baec5b
--- /dev/null
+++ b/sci-libs/pytorch/files/pytorch-2.2.1-emptyso.patch
@@ -0,0 +1,13 @@
+--- a/setup.py 2024-03-08 19:34:42.148677983 +0100
++++ b/setup.py 2024-03-08 19:34:52.402558423 +0100
+@@ -1019,10 +1019,6 @@
+             extensions.append(
+                 Extension(name="caffe2.python.caffe2_pybind11_state_hip", 
sources=[]),
+             )
+-    if cmake_cache_vars["BUILD_FUNCTORCH"]:
+-        extensions.append(
+-            Extension(name="functorch._C", sources=[]),
+-        )
+ 
+     cmdclass = {
+         "bdist_wheel": wheel_concatenate,

diff --git a/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild 
b/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild
index e3bdd2b2f216..eeedad68bd1b 100644
--- a/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild
+++ b/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..12} )
 DISTUTILS_SINGLE_IMPL=1
 DISTUTILS_EXT=1
-inherit distutils-r1 multibuild prefix
+inherit distutils-r1 prefix
 
 DESCRIPTION="Tensors and Dynamic neural networks in Python"
 HOMEPAGE="https://pytorch.org/";

diff --git a/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild 
b/sci-libs/pytorch/pytorch-2.2.1.ebuild
similarity index 94%
copy from sci-libs/pytorch/pytorch-2.1.2-r1.ebuild
copy to sci-libs/pytorch/pytorch-2.2.1.ebuild
index e3bdd2b2f216..442d74f6a2d6 100644
--- a/sci-libs/pytorch/pytorch-2.1.2-r1.ebuild
+++ b/sci-libs/pytorch/pytorch-2.2.1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..12} )
 DISTUTILS_SINGLE_IMPL=1
 DISTUTILS_EXT=1
-inherit distutils-r1 multibuild prefix
+inherit distutils-r1 prefix
 
 DESCRIPTION="Tensors and Dynamic neural networks in Python"
 HOMEPAGE="https://pytorch.org/";
@@ -41,7 +41,7 @@ src_prepare() {
                "${FILESDIR}"/${PN}-2.0.0-global-dlopen.patch \
                "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \
                "${FILESDIR}"/${PN}-1.13.0-setup.patch \
-               "${FILESDIR}"/${PN}-2.1.1-emptyso.patch \
+               "${FILESDIR}"/${P}-emptyso.patch \
 
        # Set build dir for pytorch's setup
        sed -i \

Reply via email to