diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 00:43:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 00:43:01 +0000 |
commit | 5b92fa4e1ed1575ff7e8ab4abdc516ef9a8782e0 (patch) | |
tree | c194f1b4f7303106b923f95c292263815c794095 | |
parent | 01d4911cba8f0fa4bf7a512015a052893a46e32c (diff) |
automatic import of torchtext
-rw-r--r-- | 001-fix-submodule.patch | 13 | ||||
-rw-r--r-- | torchtext.spec | 3 |
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 |