summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-02-27 17:16:24 +0000
committerCoprDistGit <infra@openeuler.org>2024-02-27 17:16:24 +0000
commit4480bb89cc47ece8e2c8429698d4f9f261258a52 (patch)
treea5292f010ef58af79188718ed72d9e3bf1c7bdc9
parent7e6cdcf687516481b68899e0898507f05473a768 (diff)
automatic import of transformers
-rw-r--r--transformers.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/transformers.spec b/transformers.spec
index 81c04f5..000157b 100644
--- a/transformers.spec
+++ b/transformers.spec
@@ -26,11 +26,15 @@ You can reuse your favorite Python packages such as NumPy, SciPy, and Cython to
%autosetup -p1 -n %{name}-%{version}
%build
+echo "Starting build process in $(pwd)"
python3 setup.py build
+echo "Build process completed"
%install
+echo "Starting install process"
python3 setup.py install --skip-build --root %{buildroot}
install -d -m755 %{buildroot}/%{_pkgdocdir}
+echo "Install process completed"
cp -arf docs %{buildroot}/%{_pkgdocdir}
cp -arf examples %{buildroot}/%{_pkgdocdir}
@@ -45,11 +49,12 @@ cp -arf awesome-transformers.md %{buildroot}/%{_pkgdocdir}
%files
%doc README*.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUES.md awesome-transformers.md
%license LICENSE
-%{python3_sitearch}/*
+%{python3_sitearch}/transformers*
%dir %{_pkgdocdir}
%{_pkgdocdir}/docs
%{_pkgdocdir}/examples
+
%changelog
* Mon Feb 28 2022 Junjunliu <172074482@qq.com> - 4.38.1-1
- First build of transformers RPM