pep8 compliance
This commit is contained in:
parent
b8d3d2c929
commit
5fd013d9f3
11
setup.py
11
setup.py
@ -58,7 +58,7 @@ SETUP_COMMON = {
|
|||||||
|
|
||||||
ESKY_OPTIONS = {
|
ESKY_OPTIONS = {
|
||||||
'bdist_esky': {
|
'bdist_esky': {
|
||||||
'includes':[
|
'includes': [
|
||||||
'ctypes',
|
'ctypes',
|
||||||
'logging',
|
'logging',
|
||||||
'OpenGL.arrays.*',
|
'OpenGL.arrays.*',
|
||||||
@ -66,7 +66,7 @@ ESKY_OPTIONS = {
|
|||||||
'OpenGL.platform.win32',
|
'OpenGL.platform.win32',
|
||||||
'encodings'
|
'encodings'
|
||||||
],
|
],
|
||||||
'excludes':[
|
'excludes': [
|
||||||
'Tkconstants',
|
'Tkconstants',
|
||||||
'Tkinter',
|
'Tkinter',
|
||||||
'tcl',
|
'tcl',
|
||||||
@ -84,6 +84,7 @@ ESKY_OPTIONS = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def build_nbt():
|
def build_nbt():
|
||||||
"""
|
"""
|
||||||
Builds _nbt.py.
|
Builds _nbt.py.
|
||||||
@ -92,6 +93,7 @@ def build_nbt():
|
|||||||
os.system(sys.executable + ' setup.py build_ext --inplace --force')
|
os.system(sys.executable + ' setup.py build_ext --inplace --force')
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
|
|
||||||
|
|
||||||
def setup_win32():
|
def setup_win32():
|
||||||
"""
|
"""
|
||||||
Packing setup for Windows 32/64.
|
Packing setup for Windows 32/64.
|
||||||
@ -100,14 +102,17 @@ def setup_win32():
|
|||||||
|
|
||||||
# This little ditty makes sure the font module is available
|
# This little ditty makes sure the font module is available
|
||||||
origIsSystemDLL = py2exe.build_exe.isSystemDLL
|
origIsSystemDLL = py2exe.build_exe.isSystemDLL
|
||||||
|
|
||||||
def isSystemDLL(pathname):
|
def isSystemDLL(pathname):
|
||||||
if os.path.basename(pathname).lower() in ['sdl_ttf.dll']:
|
if os.path.basename(pathname).lower() in ['sdl_ttf.dll']:
|
||||||
return 0
|
return 0
|
||||||
return origIsSystemDLL(pathname)
|
return origIsSystemDLL(pathname)
|
||||||
py2exe.build_exe.isSystemDLL = isSystemDLL
|
py2exe.build_exe.isSystemDLL = isSystemDLL
|
||||||
|
|
||||||
|
|
||||||
def get_data_files(*args):
|
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():
|
def main():
|
||||||
build_nbt()
|
build_nbt()
|
||||||
|
Reference in New Issue
Block a user