Skip to content

Commit eebcc8a

Browse files
naveen521kklazka
authored andcommitted
correctly find native python
it's required for regen-modules
1 parent 304647a commit eebcc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

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

205+
NATIVE_PYTHON_SEARCH_PATH_MINGW=`echo $host | grep -Eq 'mingw*' && echo "$MINGW_PREFIX/bin" || echo $PATH`
205206
AC_CHECK_PROGS([PYTHON_FOR_REGEN],
206207
[python$PACKAGE_VERSION python3.10 python3.9 python3.8 python3.7 python3.6 python3 python],
207-
[python3])
208+
[python3],
209+
[$NATIVE_PYTHON_SEARCH_PATH_MINGW])
208210
AC_SUBST(PYTHON_FOR_REGEN)
209211

210212
AC_MSG_CHECKING([Python for regen version])

0 commit comments

Comments
 (0)