logo       

Re: Optional BSD package is required for (useable) Python?: msg#00043

python.apple

Subject: Re: Optional BSD package is required for (useable) Python?

On May 11, 2004, at 3:12 PM, Chris Barker wrote:


So any idea how we can get this out of the "optional" BSD layer install? (after all, /usr/bin/perl is in the base install)

Well, if perl is there, python should be.

However, /usr//bin/python is a symlink to /usr/bin/python2.3, which is a symlink to the executable in the Framework, which is always there, as I understand it. So option

A) don't explicitly use usr/bin/python anywhere (you should be using /usr/bin/python2.3 at the very least anyway). Since some twisted individual could have replace /usr/bin/python[2.3] with a custom compiled version anyway, it's always dangerous. Isn't this what BundleBuilder2 is for?

For an application actually embedding Python, you don't ever use the executable, just the framework. Bundlebuilder2, as-is, does not embed Python, because it does not have an executable stub (just scripts). PyMacApp and the PyObjC Xcode template (they are indistinguishable) does.

B) your installer could install a /usr/bin/python2.3 symlink.

That's probably a bad idea.

There are two problems you can have. You can't link to the framework properly (boom! link error), or the Python code doesn't work. My executable stub handles both of these situations elegantly and anyone who cares should take a look at it. If your software is not Python based but uses Python (I believe Glenn is in this camp), then you can just as easily rip code out of my executable stub and use it in your own program. I don't care, and the license permits.

-bob


_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise