summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--001-fix-submodule.patch13
-rw-r--r--torchtext.spec3
2 files changed, 16 insertions, 0 deletions
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