From 7175103c6d5f182bd22141d99eabfb19c777de76 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 30 Mar 2024 02:06:55 +0000 Subject: automatic import of pytorch --- pytorch.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pytorch.spec b/pytorch.spec index b45f1b8..2608227 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -26,7 +26,7 @@ BuildRequires: python3-setuptools_scm BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel -# BuildRequires: python3-hatchling +BuildRequires: python3-hatchling BuildRequires: python3-astunparse BuildRequires: python3-numpy @@ -54,8 +54,6 @@ You can reuse your favorite Python packages such as NumPy, SciPy and Cython to e %autosetup -p1 -n %{name}-v%{version} %build -# manual install the pkg have a try -pip install hatchling export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" %pyproject_build @@ -87,7 +85,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog - * Fri Mar 29 2024 youser - Package init -- try to fix the bug couldn't find python-hatchling -- cgit v1.2.3