All pastes #464951 Raw Edit

setup.py

public python v1 · immutable
#464951 ·published 2007-04-29 20:24 UTC
rendered paste body
#this is my attempt at a py2exe script, it worked before but now its dead...from distutils.core import setupimport py2exe, pygameimport glob, shutilimport ospy_mods=['bullet','background','display','enemy','globalvars','player','stage','menu','gun','ecollision','menu','menulists','AHH']for subdir in ["stages","guns","bullets","enemys"]:	for file in os.listdir(os.getcwd()+"\\"+subdir):		if file.endswith('.py'):			py_mods.append(subdir+"."+file.replace('.py',''))			print "adding %s.%s"%(subdir,file.replace('.py',''))print py_modssetup(windows=["pylaga.py"],name='Pylaga',version='0.0.14',description='A small Galaga clone',author='RJ Marsan',author_email='RJMarsan at gmail.com',url='http://rj.selfip.com',py_modules=py_mods)shutil.copytree('data', 'dist/data')shutil.copytree('enemys', 'dist/enemys')shutil.copytree('bullets', 'dist/bullets')shutil.copytree('guns', 'dist/guns')shutil.copytree('stages', 'dist/stages')shutil.copyfile('freesansbold.ttf', 'dist/freesansbold.ttf')