summaryrefslogtreecommitdiff
path: root/0001-use-system-python.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-02-01 06:22:39 +0000
commit2e6205e7c427a3e0f79b954360d5309981308ecd (patch)
treec8cd1f1a3e7eee644a8a26f04d8c88012338c096 /0001-use-system-python.patch
parent163fafecf77c42a8ad9cd11cc33d9cd5cb89d71c (diff)
automatic import of onnxruntime
Diffstat (limited to '0001-use-system-python.patch')
-rw-r--r--0001-use-system-python.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/0001-use-system-python.patch b/0001-use-system-python.patch
new file mode 100644
index 0000000..c821a1f
--- /dev/null
+++ b/0001-use-system-python.patch
@@ -0,0 +1,32 @@
+From d26aa78fa89c57938fdedc0cf0e0072e903ff18e Mon Sep 17 00:00:00 2001
+From: binsz <274620705z@gmail.com>
+Date: Wed, 31 Jan 2024 09:09:49 +0800
+Subject: [PATCH] use system python
+
+---
+ cmake/CMakeLists.txt | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index d3b1448..8e289d1 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -532,12 +532,12 @@ endif()
+ if (onnxruntime_BUILD_SHARED_LIB OR onnxruntime_ENABLE_PYTHON)
+ if (onnxruntime_ENABLE_PYTHON)
+ if (onnxruntime_ENABLE_LANGUAGE_INTEROP_OPS OR onnxruntime_REQUIRE_PYTHON_EMBED_LIB)
+- find_package(Python 3.8 COMPONENTS Interpreter Development NumPy)
++ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development NumPy)
+ else()
+- find_package(Python 3.8 COMPONENTS Interpreter Development.Module NumPy)
++ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development.Module NumPy)
+ endif()
+ else()
+- find_package(Python 3.8 COMPONENTS Interpreter)
++ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter)
+ endif()
+ endif()
+
+--
+2.41.0
+