mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
configure: add ability to force python version via environment
This is makes it a bit easier to run our test suite under alternative python versions.
This commit is contained in:
parent
ee1f573204
commit
98b6638a7a
1 changed files with 2 additions and 1 deletions
3
configure
vendored
3
configure
vendored
|
@ -51,6 +51,7 @@ CXXFLAGS_for_sh=${CXXFLAGS:-${CFLAGS}}
|
|||
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
|
||||
LDFLAGS=${LDFLAGS:-}
|
||||
XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config}
|
||||
PYTHON=${PYTHON:-}
|
||||
|
||||
# We don't allow the EMACS or GZIP Makefile variables inherit values
|
||||
# from the environment as we do with CC and CXX above. The reason is
|
||||
|
@ -407,7 +408,7 @@ fi
|
|||
printf "Checking for python... "
|
||||
have_python=0
|
||||
|
||||
for name in python python2 python3; do
|
||||
for name in ${PYTHON} python python2 python3; do
|
||||
if command -v $name > /dev/null; then
|
||||
have_python=1
|
||||
python=$name
|
||||
|
|
Loading…
Reference in a new issue