<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Charles,<div><br class="webkit-block-placeholder"></div><div> That seems normal. Here's a bash script I use for compiling my application. I don't mess with the setup.py once it's generated, and this bash script seems to do the trick.</div><div><br class="webkit-block-placeholder"></div><div><div>rm -r build</div><div>rm -r dist</div><div><br class="webkit-block-placeholder"></div><div>py2applet --make-setup Decoder.py</div><div>python setup.py py2app --include DUtils,LabVIEWWrapper --packages PyDrill,mx,Ft,ZODB,persistent,transaction,zope --resources config.xml,file1.xml,file2.xml,file3.xml,logs > compile.log</div><div><br class="webkit-block-placeholder"></div><div>cp -r /usr/local/Zope-3.3.1-Python2.5/lib/python/zope/interface /Teledrill/Applications/Python/Decoder/dist/Decoder.app/Contents/Resources/lib/pytho</div><div>n2.5/zope/</div><div><br class="webkit-block-placeholder"></div><div>The first two lines simply clean out the old build.</div><div>The third line creates the setup.py file.</div><div>The fourth line actually compiles the app. The include files are two .py files, local modules, that i need to include. The packages are python packages on the python path that I want to include for use. The resources are include files that my app needs, i've obscured their actual names, and the command dumps out to a log.</div><div>The last line is a really silly way to correct a bug in py2app. When i tell it to include zope, it doesn't include the "interface" sub-module, so I forcefully copy it into the app.</div><div><br class="webkit-block-placeholder"></div><div>I'm not sure if this is the right way to do it, but it's worked for me so far.</div><div><br class="webkit-block-placeholder"></div><div>Good luck.</div><div><br class="webkit-block-placeholder"></div><div>Also feel free to ask any time. I ask questions all of the time.</div><div><br class="webkit-block-placeholder"></div><div>Regards,</div><div>Kenneth Miller</div><div><br class="webkit-block-placeholder"></div><div><div>On Jan 19, 2008, at 6:59 PM, Charles Hartman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hm. I'm very puzzled. I tried <div><span class="Apple-tab-span" style="white-space:pre">        </span>python setup.py py2app -A</div><div>and ended up with a tiny 192Kb "application." It runs fine on my machine. But it surely doesn't have a Python built into it, at that size. (The regular "python setup.py py2app" produces a monstrous 40Mb file.)</div><div><br class="webkit-block-placeholder"></div><div>I don't mean to keep nagging you for help. Where's the best place to find an explanation of the details of this?</div><div><br class="webkit-block-placeholder"></div><div>Many thanks.</div><div><br class="webkit-block-placeholder"></div><div>Charles Hartman</div><div><br><div><div>On Jan 19, 2008, at 6:19 PM, Kenneth Miller wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF"><div>No, it bundles a python binary along with your source in a .app package.</div><div><br>Regards,<div>Kenneth Miller</div></div><div><br>On Jan 19, 2008, at 4:55 PM, Charles Hartman <<a href="mailto:charles.hartman@conncoll.edu">charles.hartman@conncoll.edu</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Thank you very much. Doesn't that depend on whatever Python is built-in on the end-user's machine? I'd have to do some testing (which I may not have properly equipped machines to do) to see what my app will work with . . .<div><br class="webkit-block-placeholder"></div><div>Best,</div><div>Charles Hartman</div><div><br class="webkit-block-placeholder"></div><div><br><div><div>On Jan 19, 2008, at 4:20 PM, Kenneth Miller wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Check out py2applet, I use it all the time.<div><br class="webkit-block-placeholder"></div><div>Regards,</div><div>Kenneth Miller<br><br><div class="gmail_quote">On Jan 19, 2008 1:40 PM, Charles Hartman <<a href="mailto:charles.hartman@conncoll.edu"> </a><a href="mailto:charles.hartman@conncoll.edu">charles.hartman@conncoll.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I mean *really* simple: I've been away from Python programming for a <br>couple of years, and I've just gotten a query about an old open-source<br>program posted on my website. I may have a fix for the problem the<br>user encountered, at least when I run from inside the Wing IDE.<br><br> My question is, what is the current best/simplest way to build a<br>freestanding application? I tried "python setup.py" with my old<br>setup.py file, but I get an error: setuptools not found. Maybe I just<br>need to fix my path? It's been a couple of systems (a couple of <br>computers, for that matter) since I did this, and though I've kept up<br>with current versions of Python (2.5), Wing, and wxPython (2.8.x),<br>I've probably neglected some basic housekeeping.<br><br>Pointers to a simple how-to-build-an-app doc would be welcome. Thanks <br>for any help.<br><br>Charles Hartman<br><br>_______________________________________________<br>Pythonmac-SIG maillist - <a href="mailto:Pythonmac-SIG@python.org"></a><a href="mailto:Pythonmac-SIG@python.org">Pythonmac-SIG@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pythonmac-sig" target="_blank"> </a><a href="http://mail.python.org/mailman/listinfo/pythonmac-sig">http://mail.python.org/mailman/listinfo/pythonmac-sig</a><br></blockquote></div><br></div></blockquote></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>