diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-30 05:42:54 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-30 05:42:54 +0000 |
commit | aa5eba76df4a376164457366e941e261aaae2d9c (patch) | |
tree | 7d48346302d61e66e0db6d725c69f64dbd396ae0 | |
parent | 0a5ef3a0093f71218a32abc4e8a02d047985b4f0 (diff) |
automatic import of pytorch
-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 |