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 committed Nov 2, 2024
1 parent a2ba9c5 commit c8afcec
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 @@ -204,9 +204,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.12 python3.11 python3.10 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 c8afcec

Please sign in to comment.