summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-10-16 11:14:16 +0000
committerCoprDistGit <infra@openeuler.org>2025-10-16 11:14:16 +0000
commitf0d484b55b87ee7105eea2fa1bffb538b5a9c73d (patch)
tree1262a878417122eea83ec92ce54547cc1da16b03
parent9377510420d974f862990078f70162bd0aae8888 (diff)
automatic import of loggpt
-rw-r--r--loggpt.spec10
-rw-r--r--sources2
2 files changed, 8 insertions, 4 deletions
diff --git a/loggpt.spec b/loggpt.spec
index 7c55e83..7acdd20 100644
--- a/loggpt.spec
+++ b/loggpt.spec
@@ -36,10 +36,13 @@ mkdir -p %{_builddir}/%{name}-%{version}/wheelhouse
-r requirements.txt \
setuptools wheel pip \
-i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
+export https_proxy=http://185.239.85.89:3128
+export http_proxy=http://185.239.85.89:3128
%{__python3} -m pip download \
-d %{_builddir}/%{name}-%{version}/wheelhouse \
- torch --index-url https://download.pytorch.org/whl/cpu
-
+ torch==2.8.0+cpu --index-url https://download.pytorch.org/whl/cpu
+cd %{_builddir}/%{name}-%{version}/ && tar -zcf wheelhouse.tar.gz wheelhouse
+rm -rf %{_builddir}/%{name}-%{version}/wheelhouse
%install
rm -rf %{buildroot}
@@ -49,7 +52,8 @@ mkdir -p %{buildroot}/opt/%{name}
mkdir -p %{buildroot}/opt/%{name}/wheelhouse
# 复制wheelhouse离线包
-cp -r %{_builddir}/%{name}-%{version}/wheelhouse/* %{buildroot}/opt/%{name}/wheelhouse/
+tar -zxf %{_builddir}/%{name}-%{version}/wheelhouse.tar.gz -C %{buildroot}/opt/%{name}/
+rm -rf %{_builddir}/%{name}-%{version}/wheelhouse.tar.gz
# 复制项目代码(排除不需要的文件)
find %{_builddir}/%{name}-%{version} -maxdepth 1 \
diff --git a/sources b/sources
index 057f33e..4cec6ec 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cbd26a6abbf2e40166790b8fa7bdd09e loggpt-1.0.0.tar.gz
+6caf46ebbf7744af7974f5f3a5e61af6 loggpt-1.0.0.tar.gz