]> arthur.barton.de Git - bup.git/blobdiff - config/configure
Install bup-python and rely on it everywhere
[bup.git] / config / configure
index 1ea6757a3df313c29f5d27b4f7db0f1c00a622b5..66f62501a1b8c37ae787a506b7abc1c35de50873 100755 (executable)
@@ -67,6 +67,8 @@ if test -z "$bup_python"; then
     AC_FAIL "ERROR: unable to find python"
 else
     AC_SUB bup_python "$bup_python"
+    AC_SUB bup_python_majver \
+           "$("$bup_python" -c 'import sys; print(sys.version_info[0])')"
 fi
 
 if test -z "$(bup_find_prog git '')"; then