From 4dd13b0bcf012607cbdb1ee8c848bb0855dad0d4 Mon Sep 17 00:00:00 2001 From: Chunmei Xu Date: Wed, 16 Aug 2023 15:03:46 +0800 Subject: [PATCH] add egg-info Signed-off-by: Chunmei Xu --- pytorch.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pytorch.spec b/pytorch.spec index 853414a..ba3cab3 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -1,4 +1,4 @@ -%global anolis_version 8 +%global anolis_version 9 %global debug_package %{nil} Name: pytorch @@ -415,6 +415,12 @@ echo 'hip = None' >> %{buildroot}/%{python3_sitearch}/torch/version.py # remove junk rm -rf %{buildroot}/%{_includedir}/clog.h +# egg info +%{python3} setup.py egg_info +cp -r torch.egg-info %{buildroot}%{python3_sitearch}/ +sed -i 's|[<=>].*||g' %{buildroot}%{python3_sitearch}/*.egg-info/requires.txt +sed -i '/triton/d' %{buildroot}%{python3_sitearch}/*.egg-info/requires.txt + %files #%doc README.md CONTRIBUTING.md #%license LICENSE @@ -458,6 +464,9 @@ rm -rf %{buildroot}/%{_includedir}/clog.h %changelog +* Wed Aug 16 2023 Chunmei Xu - 1.10.1-9 +- add egg-info + * Wed Aug 02 2023 Chunmei Xu - 1.10.1-8 - add requires of python3-typing-extensions -- Gitee