summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-03-30 02:22:11 +0000
committerCoprDistGit <infra@openeuler.org>2024-03-30 02:22:11 +0000
commitb3fed366afc805e0aafb7b6ca6e609f6e72aa37c (patch)
treeaee54934207c76d39485bff42afd4b07701a2b0c
parent7175103c6d5f182bd22141d99eabfb19c777de76 (diff)
automatic import of pytorch
-rw-r--r--pytorch.spec10
1 files changed, 7 insertions, 3 deletions
diff --git a/pytorch.spec b/pytorch.spec
index 2608227..d4657da 100644
--- a/pytorch.spec
+++ b/pytorch.spec
@@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0
Name: pytorch
-Version: 2.1.2
-Release: 2
+Version: 2.1.2
+Release: 1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
License: BSD-3
URL: https://pytorch.org/
@@ -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,8 @@ 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"
%pyproject_build
@@ -85,5 +87,7 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
+
* Fri Mar 29 2024 youser
- Package init
+- try to fix the bug couldn't find python-hatchling