summaryrefslogtreecommitdiff
path: root/pytorch.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-03-30 05:42:54 +0000
committerCoprDistGit <infra@openeuler.org>2024-03-30 05:42:54 +0000
commitaa5eba76df4a376164457366e941e261aaae2d9c (patch)
tree7d48346302d61e66e0db6d725c69f64dbd396ae0 /pytorch.spec
parent0a5ef3a0093f71218a32abc4e8a02d047985b4f0 (diff)
automatic import of pytorch
Diffstat (limited to 'pytorch.spec')
-rw-r--r--pytorch.spec2
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