mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix #24
This commit is contained in:
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()
|
ver = subprocess.check_output('pkg-config --modversion glew'.split()).decode('utf-8').strip()
|
||||||
except Exception:
|
except Exception:
|
||||||
ver = 'not found'
|
ver = 'not found'
|
||||||
major = int(re.match(r'\d+', ver))
|
major = int(re.match(r'\d+', ver).group())
|
||||||
if major < 2:
|
if major < 2:
|
||||||
raise SystemExit('glew >= 2.0.0 is required, found version: ' + ver)
|
raise SystemExit('glew >= 2.0.0 is required, found version: ' + ver)
|
||||||
cflags.extend(pkg_config('glew', '--cflags-only-I'))
|
cflags.extend(pkg_config('glew', '--cflags-only-I'))
|
||||||
|
|||||||
Reference in New Issue
Block a user