diff --git a/scripts/cmake/PythonSetup.cmake b/scripts/cmake/PythonSetup.cmake index ef6be751483de6a3bb6e6784b3888f0a98e3cccf..95e3fedcc3179416fdd2bb0b3b2ae0f3da3ab592 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)