<div><strong>#How to use setup.py file with py2exe:</strong></div>
<div><strong></strong> </div>
<div>python daniesetup.py py2exe --bundle 1 </div>
<div> </div>
<div><strong>#Also the data files have to taken care off in the <em>options</em></strong> list</div>
<div> </div>
<div><strong>#Here is a sample setup.py:</strong></div>
<div><strong>#----------------------------------------------------</strong></div>
<div>from distutils.core import setup<br>import py2exe<br>import sys</div>
<p># no arguments<br>if len(sys.argv) == 1:<br> sys.argv.append("py2exe")</p>
<div># creates a standalone .exe file, no zip files<br>setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 1}},<br> zipfile = None,<br>
# replace test.py with your own code filename here ...<br> console = [{"script": 'test.py'}] )<br></div>
<div>Regards </div>
<div>Prakash<br><br></div>