diff --git a/pytorch.spec b/pytorch.spec index 853414a3458d90c8aadbd9e1f36dd4a12a93ce2c..ba3cab3a544fc2e9461d81bd2b316228b60b57c2 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