diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-29 14:04:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-29 14:04:08 +0000 |
commit | 085a58853dd7623b2035999c5a4558627debc96a (patch) | |
tree | 350dad1ca4458a697098664134cee05c0f9ba477 | |
parent | 608f2260f4e61755d24d966bec5fab6be28dc3d9 (diff) |
automatic import of pytorch
-rw-r--r-- | pytorch.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pytorch.spec b/pytorch.spec index f21c217..b45f1b8 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,6 +54,7 @@ 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" |