summaryrefslogtreecommitdiff
path: root/text.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-16 01:07:32 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-16 01:07:32 +0000
commit6727b2d10826c558fc0443abb2de847ed21bb022 (patch)
treed69ef48bbd7a5f08ffe61122b09e67b7a8834efc /text.spec
parentb9e0915c027c407acb21cfda95207854ef7cfa0d (diff)
automatic import of torchtext
Diffstat (limited to 'text.spec')
-rw-r--r--text.spec19
1 files changed, 14 insertions, 5 deletions
diff --git a/text.spec b/text.spec
index 0204a94..6dd9652 100644
--- a/text.spec
+++ b/text.spec
@@ -11,19 +11,28 @@ License: BSD
URL: https://github.com/pytorch/text
Source0: https://github.com/pytorch/text/archive/v%{version}.tar.gz
-BuildRequires: gcc
-BuildRequires: gcc-c++
+
BuildRequires: cmake
BuildRequires: ninja-build
-BuildRequires: python3-devel
+BuildRequires: utf8proc-devel
+BuildRequires: re2-devel
+BuildRequires: double-conversion-devel
+BuildRequires: sentencepiece-devel
+
BuildRequires: python3-numpy
BuildRequires: python3-scipy
BuildRequires: python3-scikit-learn
-BuildRequires: python3-matplotlib
+BuildRequires: python3-tqdm
+BuildRequires: python3-requests
+BuildRequires: python3-devel
BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
-BuildRequires: python3-pytorch
+BuildRequires: python3-hatchling
+
+BuildRequires: python3-pytorch >= 2.1.2
%description
torchtext is a Natural Language Processing (NLP) library for PyTorch. It provides data