diff options
author | ng0 <ng0@n0.is> | 2019-04-24 09:32:34 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-24 09:35:01 +0000 |
commit | b71b064e2ed8e3547c411234a24f5e7a1e0a4de1 (patch) | |
tree | df340625561fbc741c2af028a80686ccc03b1cdc | |
parent | f5099e863f719b406ea2ab0a8b51279fc6455a4c (diff) | |
download | bank-b71b064e2ed8e3547c411234a24f5e7a1e0a4de1.tar.gz bank-b71b064e2ed8e3547c411234a24f5e7a1e0a4de1.tar.bz2 bank-b71b064e2ed8e3547c411234a24f5e7a1e0a4de1.zip |
Attempt to detect more valid pip executables. Tested with pip3.7
-rw-r--r-- | configure.ac | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d70c52a..0da5d9f 100644 --- a/configure.ac +++ b/configure.ac @@ -28,20 +28,46 @@ PC_PYTHON_CHECK_HEADERS([pyheaders=1]) PC_PYTHON_CHECK_VERSION() # -# Check for pip3 +# Check for pip3. +# It is either pip3 or pip[3.4,3.5,3.6,3.7]. +# XXX: This check might be bad. +# XXX: We might want to write proper m4 or an +# XXX: external script for the pip detection and usage. # AC_MSG_CHECKING([pip3]) pip3 --version >/dev/null if test $? -ne 0; then - AC_MSG_ERROR([Please install pip3>=6.0]) + pip3.4 --version >/dev/null + if test $? -ne 0; + then + pip3.5 --version >/dev/null + if test $? -ne 0; + then + pip3.6 --version >/dev/null + if test $? -ne 0; + then + pip3.7 --version >/dev/null + if test $? -ne 0; + then + AC_MSG_ERROR([Please install pip3>=6.0]) +fi +fi +fi +fi fi PIP_VERSION=$(pip3 --version | $AWK '{ print $2 }') +PIP_VERSION=$(pip3.4 --version | $AWK '{ print $2 }') +PIP_VERSION=$(pip3.5 --version | $AWK '{ print $2 }') +PIP_VERSION=$(pip3.6 --version | $AWK '{ print $2 }') +PIP_VERSION=$(pip3.7 --version | $AWK '{ print $2 }') AC_MSG_RESULT([$PIP_VERSION]) +# FIXME: Also check for equal 6.0? At this point 19.0 is out, so +# checking for >6.0 should be enough. AX_COMPARE_VERSION([$PIP_VERSION],[lt],[6.0], [AC_MSG_ERROR([Please install pip3>=6.0])]) # On Debian systems, we may need to pass "--system" to pip3 to get |