<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Chris,<div><br></div><div>&nbsp;&nbsp; &nbsp;How can I build python to link to the OS X Tkinter libraries? That's the ONLY reason I'm using the system python. I usually use the python built by macports.</div><div><br></div><div>Regards,</div><div>Ken</div><div><br><div><div>On Aug 7, 2008, at 3:59 PM, Chris Barker wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Kenneth Miller wrote:<br><blockquote type="cite">This is what I'm encountering.<br></blockquote><blockquote type="cite">Here i printed the sys.path, why does this include modules local to the machine? I want it to be independent of any local resources?<br></blockquote><blockquote type="cite">'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', <br></blockquote><br>This is Apple's installed python. by default, if you run py2app with Apple's system python, it will link to that, rather than embedding all of python with it.<br><br>I don't know if you can override that, but if you want your app bundle to run on pre 10.5 machines, you need to install the python.org python, and use that. py2app will embed the whole thing in your app bundle, and it should run on any max, OS-X 10.3.9 and above.<br><br>I don't know if there are any special issues with LXML, but I'd get a simple app with only the standard library working first, and then try your full app.<br><br>-Chris<br><br><br><br><br>-- <br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&amp;R &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(206) 526-6959 &nbsp;&nbsp;voice<br>7600 Sand Point Way NE &nbsp;&nbsp;(206) 526-6329 &nbsp;&nbsp;fax<br>Seattle, WA &nbsp;98115 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(206) 526-6317 &nbsp;&nbsp;main reception<br><br><a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a><br>_______________________________________________<br>Pythonmac-SIG maillist &nbsp;- &nbsp;<a href="mailto:Pythonmac-SIG@python.org">Pythonmac-SIG@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pythonmac-sig">http://mail.python.org/mailman/listinfo/pythonmac-sig</a><br></div></blockquote></div><br></div></body></html>