diff --git a/install-deps b/install-deps index deba886..d5ec45b 100755 --- a/install-deps +++ b/install-deps @@ -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()