From 72ad1f0389043a5f26735e3ca2a2a88398daba23 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 26 Jul 2025 17:15:59 -0700 Subject: [PATCH] Fix some issues with switching to pyproject macros Signed-off-by: Tom Rix --- python-torch.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-torch.spec b/python-torch.spec index 44c1199..03fbf30 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -214,6 +214,7 @@ BuildRequires: google-benchmark-devel %endif Requires: python3dist(dill) +Requires: python3dist(yaml) Obsoletes: caffe = 1.0^git20200212.9b89154 @@ -638,6 +639,7 @@ export HIP_CLANG_PATH=%{rocmllvm_bindir} export PYTORCH_ROCM_ARCH=%{rocm_gpu_list_default} %if %{with gitcommit} %pyproject_install +%pyproject_save_files '*torch*' %else %py3_install %endif @@ -646,7 +648,7 @@ export PYTORCH_ROCM_ARCH=%{rocm_gpu_list_default} %if %{with gitcommit} %pyproject_install -%pyproject_save_files torch +%pyproject_save_files '*torch*' %else %py3_install %endif @@ -670,10 +672,8 @@ export PYTORCH_ROCM_ARCH=%{rocm_gpu_list_default} %doc README.md %{_bindir}/torchrun %{_bindir}/torchfrtrace -%{python3_sitearch}/%{pypi_name} -%{python3_sitearch}/%{pypi_name}-*.egg-info +%{python3_sitearch}/%{pypi_name}* %{python3_sitearch}/functorch -%{python3_sitearch}/torchgen %changelog %autochangelog