From 22dd591856701ef44323f13912a6f16a1d98ca1a Mon Sep 17 00:00:00 2001 From: Brian Brown Date: Mon, 23 Nov 2015 15:40:39 -0700 Subject: [PATCH] Fix version checking for python pygments. Current method only works for versions numbers with only one decimal point --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bf9ffc444d7..c88295e0356 100644 --- a/configure.ac +++ b/configure.ac @@ -638,7 +638,8 @@ python 2> /dev/null << EOF import sys import pygments -if float(pygments.__version__) >= 1.5: +pygments_version = pygments.__version__.split('.') +if int(pygments_version[0]) >= 1 and int(pygments_version[1]) > 5: sys.exit(0) else: sys.exit(1)