Fix #24
This commit is contained in:
parent
935e7a975f
commit
c4bcceb440
2
setup.py
2
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'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user