install-deps: handle gtkgl dependency
This commit is contained in:
parent
9be9335d8e
commit
3826686c96
@ -38,7 +38,9 @@ if not os.path.exists(numpy_src.replace('.tar.gz', '')):
|
|||||||
if not os.path.exists('PythonPackages/FuncDesigner'):
|
if not os.path.exists('PythonPackages/FuncDesigner'):
|
||||||
Popen(['unzip', funcdesigner_src]).wait()
|
Popen(['unzip', funcdesigner_src]).wait()
|
||||||
|
|
||||||
if not os.path.exists('/usr/local/lib/python2.7/dist-packages/numpy'):
|
try:
|
||||||
|
exec 'import numpy'
|
||||||
|
except:
|
||||||
indirdo('numpy-%s' % NUMPY_VER, lambda:
|
indirdo('numpy-%s' % NUMPY_VER, lambda:
|
||||||
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
|
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
|
||||||
|
|
||||||
@ -47,3 +49,8 @@ try:
|
|||||||
except:
|
except:
|
||||||
indirdo('PythonPackages/FuncDesigner', lambda:
|
indirdo('PythonPackages/FuncDesigner', lambda:
|
||||||
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
|
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
|
||||||
|
|
||||||
|
try:
|
||||||
|
exec 'import gtkgl'
|
||||||
|
except:
|
||||||
|
Popen(['sudo', 'apt-get', 'install', 'python-gtkglext1']).wait()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user