mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
3
setup.py
3
setup.py
@@ -70,9 +70,10 @@ def init_env(debug=False, asan=False):
|
|||||||
if not is_travis and subprocess.Popen('pkg-config --atleast-version=2 glew'.split()).wait() != 0:
|
if not is_travis and subprocess.Popen('pkg-config --atleast-version=2 glew'.split()).wait() != 0:
|
||||||
try:
|
try:
|
||||||
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()
|
||||||
|
major = int(re.match(r'\d+', ver).group())
|
||||||
except Exception:
|
except Exception:
|
||||||
ver = 'not found'
|
ver = 'not found'
|
||||||
major = int(re.match(r'\d+', ver).group())
|
major = 0
|
||||||
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