diff options
-rw-r--r-- | pytorch.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pytorch.spec b/pytorch.spec index 41016d5..7d83659 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -54,7 +54,7 @@ You can reuse your favorite Python packages such as NumPy, SciPy and Cython to e %autosetup -p1 -n %{name}-v%{version} %build -sudo pip install hatchling +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 |