diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 11:59:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 11:59:07 +0000 |
commit | ee5e19d461296c9861052b85773b55629b98d26d (patch) | |
tree | fbdcefa88594773ff29f488ec6864024aadf536f | |
parent | a5cde5b4c60f741cf59cb766f90f75bb38475725 (diff) |
automatic import of onnxruntime
-rw-r--r-- | python-onnxruntime.spec | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python-onnxruntime.spec b/python-onnxruntime.spec index 261f906..25a7695 100644 --- a/python-onnxruntime.spec +++ b/python-onnxruntime.spec @@ -75,10 +75,15 @@ bash build.sh --build_dir build \ --build_shared_lib \ --skip_submodule_sync +# Build python libs +mv ./onnxruntime ./onnxruntime.src +cp -R %{_builddir}/build/RelWithDebInfo/onnxruntime ./onnxruntime +cp %{_builddir}/build/RelWithDebInfo/requirements.txt ./requirements.txt %pyproject_build %install - +# onnxruntime +%__cmake --install %{_builddir}/build/RelWithDebInfo --prefix=%{buildroot} # doc mkdir -p "%{buildroot}/%{_docdir}/" cp --preserve=timestamps -r "./docs/" "%{buildroot}/%{_docdir}/%{name}" |