[Pythonmac-SIG] Bundling Python framework with app
Hi, Sorry if this is a naieve question - I'm completely new to OS X programming. What I'm trying to do is embed Python 2.4 in a Cocoa app, and include the framework (2.4.3) in the app bundle so that users don't need to install the framework separately. I can get the framework copied into the bundle no problem, but whatever I try, the executable remains linked to /Library/Frameworks/Python.framework. Is this even possible? Thanks for any ideas, Tom ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On 20/06/2006, at 01:24:50, Banoffi wrote: Hi, Sorry if this is a naieve question - I'm completely new to OS X programming. What I'm trying to do is embed Python 2.4 in a Cocoa app, and include the framework (2.4.3) in the app bundle so that users don't need to install the framework separately. I can get the framework copied into the bundle no problem, but whatever I try, the executable remains linked to /Library/Frameworks/Python.framework. Is this even possible? Maybe this is what you're looking for: http://rentzsch.com/cocoa/ embeddedFrameworks cheers, Tom Thanks for any ideas, Tom ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On Monday, June 19, 2006, at 05:28PM, Tom Birch [EMAIL PROTECTED] wrote: On 20/06/2006, at 01:24:50, Banoffi wrote: Hi, Sorry if this is a naieve question - I'm completely new to OS X programming. What I'm trying to do is embed Python 2.4 in a Cocoa app, and include the framework (2.4.3) in the app bundle so that users don't need to install the framework separately. I can get the framework copied into the bundle no problem, but whatever I try, the executable remains linked to /Library/Frameworks/Python.framework. Is this even possible? Maybe this is what you're looking for: http://rentzsch.com/cocoa/ embeddedFrameworks Py2app contains machostandalone, which can do at least part of what you need. Ronald ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
Ronald, Tom, thanks for the information. I think I understand what's going on a bit more now. But now I think it would make more sense to package my app and the Python framework as a .pkg (the only slight disadvantage is that non-admin users may not be able to install it, but I don't think that'll be a problem.) cheers, Tom ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On Jun 19, 2006, at 11:08 AM, Banoffi wrote: Ronald, Tom, thanks for the information. I think I understand what's going on a bit more now. But now I think it would make more sense to package my app and the Python framework as a .pkg (the only slight disadvantage is that non-admin users may not be able to install it, but I don't think that'll be a problem.) That rarely ever makes sense. You really shouldn't do that for an application. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On 19 Jun 2006, at 19:37, Bob Ippolito wrote: Ronald, Tom, thanks for the information. I think I understand what's going on a bit more now. But now I think it would make more sense to package my app and the Python framework as a .pkg (the only slight disadvantage is that non-admin users may not be able to install it, but I don't think that'll be a problem.) That rarely ever makes sense. You really shouldn't do that for an application. Um, why not? I know it's not as simple as drag-and-drop, but neither is it particularly hard work for the user. (And I'm not at all confident of getting the embedded package approach to work.) Tom ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On Jun 19, 2006, at 11:43 AM, Banoffi wrote: On 19 Jun 2006, at 19:37, Bob Ippolito wrote: Ronald, Tom, thanks for the information. I think I understand what's going on a bit more now. But now I think it would make more sense to package my app and the Python framework as a .pkg (the only slight disadvantage is that non-admin users may not be able to install it, but I don't think that'll be a problem.) That rarely ever makes sense. You really shouldn't do that for an application. Um, why not? I know it's not as simple as drag-and-drop, but neither is it particularly hard work for the user. (And I'm not at all confident of getting the embedded package approach to work.) It's harder for the user, you're could overwrite an existing Python installation, it doesn't follow Apple's guidelines, etc. Don't do it that way. I definitely wouldn't even consider installing your software if it used a .pkg installer unless I *really* needed it. It's not a slight disadvantage. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On Mon, Jun 19, 2006 at 07:43:57PM +0100, Banoffi wrote: Um, why not? I know it's not as simple as drag-and-drop, but neither is it particularly hard work for the user. (And I'm not at all confident of getting the embedded package approach to work.) One major reason I avoid .pkg installers is there's no easy way to uninstall. With an app bundle, you just trash it. (And yes, this is Apple's problem that they still don't have a robust installer after 5 years.) -- Nicholas Riley [EMAIL PROTECTED] | http://www.uiuc.edu/ph/www/njriley ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Bundling Python framework with app
On 19 Jun 2006, at 19:46, Bob Ippolito wrote: It's harder for the user, you're could overwrite an existing Python installation, it doesn't follow Apple's guidelines, etc. Don't do it that way. I definitely wouldn't even consider installing your software if it used a .pkg installer unless I *really* needed it. It's not a slight disadvantage. Well... you're right. I'm always telling my Windows-using colleagues how elegant and stuff the OS X way is. Anyway, after a bit of hacking at macho_standalone, I think I've got the bundled approach working. thanks all, Tom ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig