Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

setup.py for py2exe example one

By: a guest on Apr 22nd, 2013  |  syntax: Python  |  size: 0.84 KB  |  hits: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from distutils.core import setup
  2. import py2exe, glob, sys
  3.  
  4. #http://www.py2exe.org/
  5. #Run from dos command prompt "python setup.py" as we add py2exe below.
  6. sys.argv.append("py2exe")
  7.  
  8. #Add code for bundling up image and icon files
  9. #http://www.py2exe.org/index.cgi/data_files
  10.  
  11.  
  12. setup(
  13.         #console=['mchs.pyw'],       #Concole Application
  14.         windows=[
  15.             {
  16.                 "script" : 'mchs.pyw',
  17.                 "icon_resources": [(1,"Weatherford.ico")]
  18.             }
  19.         ],       #Windows Application
  20.         data_files=[(".", [
  21.             "weatherford.ico"])
  22.             ,
  23.             ('images', glob.glob("images/*.gif")),
  24.             ]
  25.         #options = {'py2exe': {
  26.         #    'optimize': 2,
  27.         #    }}
  28.     )
  29.  
  30. #http://www.py2exe.org/index.cgi/ListOfOptions
  31. #http://www.py2exe.org/index.cgi/data_files