mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-19 18:47:26 +03:00
Show version of glew when version 2 not found
This commit is contained in:
parent
e8bbf3fe4f
commit
46169ace1c
6
setup.py
6
setup.py
@ -67,7 +67,11 @@ def init_env(debug=False, asan=False):
|
||||
|
||||
cflags.append('-pthread')
|
||||
if subprocess.Popen('pkg-config --atleast-version=2 glew'.split()).wait() != 0:
|
||||
raise SystemExit('glew >= 2.0.0 is required')
|
||||
try:
|
||||
ver = subprocess.check_output('pkg-config --modversion glew'.split()).decode('utf-8').strip()
|
||||
except Exception:
|
||||
ver = 'not found'
|
||||
raise SystemExit('glew >= 2.0.0 is required, found version: ' + ver)
|
||||
cflags.extend(pkg_config('glew', '--cflags-only-I'))
|
||||
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))
|
||||
cflags.extend(pkg_config('glfw3', '--cflags-only-I'))
|
||||
|
Loading…
Reference in New Issue
Block a user