From 5b92fa4e1ed1575ff7e8ab4abdc516ef9a8782e0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 16 Apr 2024 00:43:01 +0000 Subject: automatic import of torchtext --- 001-fix-submodule.patch | 13 +++++++++++++ torchtext.spec | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 001-fix-submodule.patch diff --git a/001-fix-submodule.patch b/001-fix-submodule.patch new file mode 100644 index 0000000..ece9e9d --- /dev/null +++ b/001-fix-submodule.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index a3fb270..443576a 100644 +--- a/setup.py ++++ b/setup.py +@@ -89,7 +89,7 @@ class clean(distutils.command.clean.clean): + shutil.rmtree(str(path), ignore_errors=True) + + +-_init_submodule() ++# _init_submodule() + setup_info = dict( + # Metadata + name="torchtext", diff --git a/torchtext.spec b/torchtext.spec index a109700..37ac9ef 100644 --- a/torchtext.spec +++ b/torchtext.spec @@ -18,6 +18,9 @@ License: %{pkg_license} URL: https://pytorch.org/text/stable/index.html Source0: https://github.com/pytorch/text/archive/refs/tags/v%{version}.tar.gz +# patch +Patch0: 001-fix-submodule.patch + # build requires BuildRequires: python3-devel BuildRequires: python3-setuptools -- cgit v1.2.3