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():
|
||||
"""
|
||||
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,15 +102,18 @@ 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]
|
||||
|
||||
|
||||
def main():
|
||||
build_nbt()
|
||||
if platform.system() == 'Windows':
|
||||
|
Reference in New Issue
Block a user