diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-30 15:25:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-30 15:25:05 +0000 |
commit | 6582bcc63f22405e235eeb2c9f22afe930d9261b (patch) | |
tree | 5a73d1312f2520ba3df255170b9d036414f856d3 | |
parent | f74df9c3dd0c6914280aa90939cb8ba8a6274f67 (diff) |
automatic import of pytorchopeneuler23.09
-rw-r--r-- | pytorch.spec | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pytorch.spec b/pytorch.spec index 85ea312..73c7523 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -27,7 +27,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 @@ -55,7 +55,6 @@ You can reuse your favorite Python packages such as NumPy, SciPy and Cython to e %autosetup -p1 -n %{name}-v%{version} %build -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 |