pep8 compliance

This commit is contained in:
David Sowder 2012-02-19 16:40:53 -06:00
parent b8d3d2c929
commit 5fd013d9f3

View File

@ -58,7 +58,7 @@ SETUP_COMMON = {
ESKY_OPTIONS = {
'bdist_esky': {
'includes':[
'includes': [
'ctypes',
'logging',
'OpenGL.arrays.*',
@ -66,7 +66,7 @@ ESKY_OPTIONS = {
'OpenGL.platform.win32',
'encodings'
],
'excludes':[
'excludes': [
'Tkconstants',
'Tkinter',
'tcl',
@ -84,6 +84,7 @@ ESKY_OPTIONS = {
}
}
def build_nbt():
"""
Builds _nbt.py.
@ -92,6 +93,7 @@ def build_nbt():
os.system(sys.executable + ' setup.py build_ext --inplace --force')
os.chdir('..')
def setup_win32():
"""
Packing setup for Windows 32/64.
@ -100,14 +102,17 @@ def setup_win32():
# This little ditty makes sure the font module is available
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
if os.path.basename(pathname).lower() in ['sdl_ttf.dll']:
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
def get_data_files(*args):
return [(d, glob.glob(d+'/*')) for d in args]
return [(d, glob.glob(d + '/*')) for d in args]
def main():
build_nbt()