install-deps: handle gtkgl dependency

This commit is contained in:
Josh Holtrop 2011-10-03 21:16:32 -04:00
parent 9be9335d8e
commit 3826686c96

View File

@ -38,7 +38,9 @@ if not os.path.exists(numpy_src.replace('.tar.gz', '')):
if not os.path.exists('PythonPackages/FuncDesigner'):
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:
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
@ -47,3 +49,8 @@ try:
except:
indirdo('PythonPackages/FuncDesigner', lambda:
Popen(['sudo', 'python', 'setup.py', 'install']).wait())
try:
exec 'import gtkgl'
except:
Popen(['sudo', 'apt-get', 'install', 'python-gtkglext1']).wait()