Skip to content

Commit

Permalink
correctly find native python
Browse files Browse the repository at this point in the history
it's required for regen-modules
  • Loading branch information
naveen521kk authored and lazka committed Aug 25, 2023
1 parent 304647a commit eebcc8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ AC_SUBST([FREEZE_MODULE])
AC_SUBST([FREEZE_MODULE_DEPS])
AC_SUBST([PYTHON_FOR_BUILD_DEPS])

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

AC_MSG_CHECKING([Python for regen version])
Expand Down

0 comments on commit eebcc8a

Please sign in to comment.