diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-31 10:53:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-31 10:53:07 +0000 |
commit | 31259b8f5f8b41083ff23c454dcbe2c315dd72ec (patch) | |
tree | e017253a7fe284bce5abc4d611b958f27d3a550a | |
parent | 008e577956e083d29f1e89591bd9d2633b8cc238 (diff) |
automatic import of python-torchtext
-rw-r--r-- | 0001-disable-submodule.patch | 36 | ||||
-rw-r--r-- | python-torchtext.spec | 5 | ||||
-rw-r--r-- | sources | 3 |
3 files changed, 1 insertions, 43 deletions
diff --git a/0001-disable-submodule.patch b/0001-disable-submodule.patch index 92d43da..efebb4b 100644 --- a/0001-disable-submodule.patch +++ b/0001-disable-submodule.patch @@ -11,39 +11,3 @@ index d008cb9c9..f4d455a65 100644 setup_info = dict( # Metadata name="torchtext", -diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt -index f21199723..aef30499a 100644 ---- a/third_party/CMakeLists.txt -+++ b/third_party/CMakeLists.txt -@@ -5,7 +5,4 @@ if(POLICY CMP0091) - cmake_policy(SET CMP0091 NEW) - endif() - --add_subdirectory(re2 EXCLUDE_FROM_ALL) --add_subdirectory(double-conversion EXCLUDE_FROM_ALL) - add_subdirectory(sentencepiece EXCLUDE_FROM_ALL) --add_subdirectory(utf8proc EXCLUDE_FROM_ALL) -diff --git a/torchtext/csrc/CMakeLists.txt b/torchtext/csrc/CMakeLists.txt -index 5d67bba8a..7bae152e7 100644 ---- a/torchtext/csrc/CMakeLists.txt -+++ b/torchtext/csrc/CMakeLists.txt -@@ -19,9 +19,6 @@ set( - LIBTORCHTEXT_INCLUDE_DIRS - ${PROJECT_SOURCE_DIR} - ${PROJECT_SOURCE_DIR}/third_party/sentencepiece/src -- $<TARGET_PROPERTY:re2,INCLUDE_DIRECTORIES> -- $<TARGET_PROPERTY:double-conversion,INCLUDE_DIRECTORIES> -- $<TARGET_PROPERTY:utf8proc,INCLUDE_DIRECTORIES> - ${TORCH_INSTALL_PREFIX}/include - ${TORCH_INSTALL_PREFIX}/include/torch/csrc/api/include - ) -@@ -120,9 +117,6 @@ if (BUILD_TORCHTEXT_PYTHON_EXTENSION) - EXTENSION_INCLUDE_DIRS - ${PROJECT_SOURCE_DIR} - ${PROJECT_SOURCE_DIR}/third_party/sentencepiece/src -- $<TARGET_PROPERTY:re2,INCLUDE_DIRECTORIES> -- $<TARGET_PROPERTY:double-conversion,INCLUDE_DIRECTORIES> -- $<TARGET_PROPERTY:utf8proc,INCLUDE_DIRECTORIES> - ${TORCH_INSTALL_PREFIX}/include - ${TORCH_INSTALL_PREFIX}/include/torch/csrc/api/include - ) diff --git a/python-torchtext.spec b/python-torchtext.spec index 4f5e472..aeda130 100644 --- a/python-torchtext.spec +++ b/python-torchtext.spec @@ -10,8 +10,6 @@ License: BSD 3-Clause URL: https://github.com/pytorch/text Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/text-%{version}.tar.gz -Source1: sentencepiece.zip - Patch0: 0001-disable-submodule.patch BuildRequires: cmake @@ -29,8 +27,6 @@ BuildRequires: python3-pytorch %description Models, data loaders and abstractions for language processing, powered by PyTorch -%global debug_package %{nil} - %package -n python3-%{pypi_name} Summary: %{summary} @@ -39,7 +35,6 @@ Models, data loaders and abstractions for language processing, powered by PyTorc %prep %autosetup -p1 -n text-%{pypi_version} -unzip %{SOURCE1} -d third_party/sentencepiece %build %py3_build @@ -1,2 +1 @@ -e897db8e4baae2ac67c8648737d020c4 sentencepiece.zip -0a932ddf29de28dd729801983bfdd361 text-0.16.2.tar.gz +53f06c05f83a2f7a7a098bff60a7bbf6 text-0.16.2.tar.gz |