From 190803bd40dba7630d29c90f6d3a81cab0a617f9 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Mon, 17 Oct 2022 13:58:08 +0200
Subject: [PATCH] [scr] Do not use embedded Python interpreter for wheel build

---
 scripts/cmake/PythonSetup.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/cmake/PythonSetup.cmake b/scripts/cmake/PythonSetup.cmake
index ef6be751483..95e3fedcc31 100644
--- a/scripts/cmake/PythonSetup.cmake
+++ b/scripts/cmake/PythonSetup.cmake
@@ -40,7 +40,7 @@ else()
 endif()
 
 set(_python_componets Interpreter)
-if(OGS_USE_PYTHON)
+if(OGS_USE_PYTHON AND NOT OGS_WHEEL_BUILD)
     list(APPEND _python_componets Development.Embed)
 endif()
 if(OGS_BUILD_PYTHON_MODULE)
-- 
GitLab