diff options
| author | David Bremner <david@tethera.net> | 2015-05-23 22:28:45 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-06-08 16:42:01 +0200 |
| commit | 98b6638a7a76447f529b91acd5aaf1ffb5f377fc (patch) | |
| tree | e1de8045d47db32b24172c51ee7ff26fadc2c1e4 | |
| parent | ee1f573204f87a0b2c20a193abf5c4d71e91f049 (diff) | |
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.
| -rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
