Skip to content

Commit

Permalink
builds/unix/configure.raw: Use variable to specify minimum Python ver…
Browse files Browse the repository at this point in the history
…sion.
  • Loading branch information
hughmcmaster authored and lemzwerg committed Aug 24, 2023
1 parent 00b0759 commit e3ada2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builds/unix/configure.raw
Original file line number Diff line number Diff line change
Expand Up @@ -966,14 +966,14 @@ esac
AX_PTHREAD([have_pthread=yes], [have_pthread=no])

# Check for Python and docwriter

PYTHON_MIN_VERSION=3.5
have_py3=no
have_docwriter=no
PIP=pip

AC_CHECK_PROGS([PYTHON], [python3 python], [missing])
if test "x$PYTHON" != "xmissing"; then
AX_PROG_PYTHON_VERSION([3.5], [have_py3=yes], [])
AX_PROG_PYTHON_VERSION([$PYTHON_MIN_VERSION], [have_py3=yes], [])

if test "x$have_py3" = "xyes"; then
PIP="$PYTHON -m $PIP"
Expand Down Expand Up @@ -1162,7 +1162,7 @@ if test $have_docwriter = no; then
`make refdoc' will fail since pip package `docwriter' is not installed.
To install, run `$PIP install docwriter', or to use a Python
virtual environment, run `make refdoc-venv' (requires pip package
`virtualenv'). These operations require Python >= 3.5.
`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
])
fi

Expand Down

0 comments on commit e3ada2f

Please sign in to comment.