File kicad-6.0.9-use-native-python.patch of Package mingw32-kicad

--- kicad-6.0.9/pcbnew/CMakeLists.txt	2023-01-25 13:09:36.554997100 +0100
+++ kicad-6.0.9/pcbnew/CMakeLists.txt	2023-01-25 13:07:57.371360572 +0100
@@ -440,7 +440,7 @@
 # This command is needed only with SWIG version < 4 to disable a python section "def swig_import_helper()"
 # found at the beginning of pcbnew.py, but not longer existing in SWIG version >= 4
 if( ${SWIG_VERSION} VERSION_LESS 4.0.0 )
-    set( OPT_CMD COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripting/build_tools/fix_swig_imports.py ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py )
+    set( OPT_CMD COMMAND ${PYTHON_NATIVE_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripting/build_tools/fix_swig_imports.py ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py )
 endif()
 
 
@@ -523,7 +523,7 @@
     add_custom_target( xml-to-docstrings
         COMMAND ${CMAKE_COMMAND} -E remove_directory docstrings
         COMMAND ${CMAKE_COMMAND} -E make_directory docstrings
-        COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripting/build_tools/extract_docstrings.py pcbnew.py doxygen-xml/xml docstrings
+        COMMAND ${PYTHON_NATIVE_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripting/build_tools/extract_docstrings.py pcbnew.py doxygen-xml/xml docstrings
         COMMAND ${CMAKE_COMMAND} -E remove pcbnew.py # force removal so it will be recreated later with the new docstrings
         COMMENT "building docstring files"
         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
openSUSE Build Service is sponsored by