guetzli-recursively-gui/.eggs/py2app-0.12-py3.6.egg/py2app/recipes/pyopengl.py
2017-04-20 00:57:59 +02:00

17 lines
512 B
Python

from __future__ import absolute_import
import os
def check(cmd, mf):
m = mf.findNode('OpenGL')
if m is None or m.filename is None:
return None
p = os.path.splitext(m.filename)[0] + '.py'
# check to see if it's a patched version that doesn't suck
if os.path.exists(p):
for line in open(p, 'rU'):
if line.startswith('__version__ = '):
return dict()
# otherwise include the whole damned thing
return dict(
packages = ['OpenGL'],
)