diff options
Diffstat (limited to '0002-use-system-python.patch')
-rw-r--r-- | 0002-use-system-python.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/0002-use-system-python.patch b/0002-use-system-python.patch new file mode 100644 index 0000000..b810f0d --- /dev/null +++ b/0002-use-system-python.patch @@ -0,0 +1,20 @@ +diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt +index 82a454791d..ddb7a904f2 100644 +--- a/cmake/CMakeLists.txt ++++ b/cmake/CMakeLists.txt +@@ -531,12 +531,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() + |