Skip to content

Commit 7ecc495

Browse files
naveen521kklazka
authored andcommitted
configure: correctly find native python
it's required for regen-modules
1 parent 9dfb767 commit 7ecc495

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,11 @@ AC_SUBST([FREEZE_MODULE])
204204
AC_SUBST([FREEZE_MODULE_DEPS])
205205
AC_SUBST([PYTHON_FOR_BUILD_DEPS])
206206

207+
NATIVE_PYTHON_SEARCH_PATH_MINGW=`echo $host | grep -Eq 'mingw*' && echo "$MINGW_PREFIX/bin" || echo $PATH`
207208
AC_CHECK_PROGS([PYTHON_FOR_REGEN],
208209
[python$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python],
209-
[python3])
210+
[python3],
211+
[$NATIVE_PYTHON_SEARCH_PATH_MINGW])
210212
AC_SUBST([PYTHON_FOR_REGEN])
211213

212214
AC_MSG_CHECKING([Python for regen version])

0 commit comments

Comments
 (0)