pep8 compliance
This commit is contained in:
parent
b8d3d2c929
commit
5fd013d9f3
5
setup.py
5
setup.py
@ -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,15 +102,18 @@ 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()
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
|
Reference in New Issue
Block a user