From c4bcceb440d2f85c3e0d207b983981065151170d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 9 Jan 2017 06:37:32 +0530 Subject: [PATCH] Fix #24 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 207e466c4..937d3f58d 100755 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ def init_env(debug=False, asan=False): ver = subprocess.check_output('pkg-config --modversion glew'.split()).decode('utf-8').strip() except Exception: ver = 'not found' - major = int(re.match(r'\d+', ver)) + major = int(re.match(r'\d+', ver).group()) if major < 2: raise SystemExit('glew >= 2.0.0 is required, found version: ' + ver) cflags.extend(pkg_config('glew', '--cflags-only-I'))