Re: [Pyobjc-dev] Help in bundling our PyObjC app?
Brought to you by:
ronaldoussoren
From: Gary R. <gro...@tr...> - 2003-06-14 15:42:58
|
Thanks to everyone, particularly Jack and Just, for your insights. They help a lot. Now that I'm beginning to understand OS X bundles more (and have , I can ask better questions about bundling our application. The latest Python is 2.2.3. My understanding is that it contains a lot of bug fixes over the stock OS X Python 2.2. (Side question I saw a note somewhere that Jaguar now has 2.2.1? But when I start Python from the command line (using Jaguar 10.2.6), it says it's "Python 2.2 (#1, 07/14/02, 23:25:09)" -- is that 2.2.1? Jack says he thinks that to enable SSL, I don't need to recompile python as a whole, but only _socketmodule.so. But maybe I SHOULD include a non-stock python so I can get the latest bug fixes. I don't want the reliability of our app to be less because we are using the stock python and it doesn't include the latest bug fixes. So on to my latest set of questions: 1) Might the bug fixes in 2.2.3 (relative to the version most Jaguar users have as stock) make a meaningful difference to the reliability of a PyObjC app that uses such features as new-style classes and generators? 2) Can I simply include this python and its libraries in the package with our app? That is, are there any difficulties in making the app work with the included python and libraries (ignoring the stock python and its libraries)? Any tips on how to do it would also be appreciated. If we do this, I'll just compile the entire 2.2.3 including the SSL, and include everything in the bundle. 3) If there isn't much reason to go to all the trouble above, a tip for how to make stock python use the _socketmodule.so I'd be including in our bundle, rather than the stock version, would be very appreciated. --Gary -- <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 > From: Just van Rossum <ju...@le...> > Date: Fri, 13 Jun 2003 21:29:51 +0200 > To: Gary Robinson <gro...@tr...> > Cc: Jack Jansen <Jac...@cw...>, pyo...@li... > Subject: Re: [Pyobjc-dev] Help in bundling our PyObjC app? > > Gary Robinson wrote: > >>> I think (but haven't tried) that you don't need a specially built >>> Python to enable SSL support, you only need a specially built >>> _socketmodule.so extension module. You can probably put this >>> somewhere in the bundle, but this is Advanced Bundlebuilder so >>> someone else will have to provide the details. >> >> If anybody who is an Advanced Bundlebuilder has a suggestion about >> how it might be done, I would really appreciate it. I have never done >> anything with bundles before (and neither has anyone else at our >> company). References to good sources of insight (including books -- I >> don't mind paying for good descriptions) would be also very much >> appreciated. I have found a couple of Apple Web pages about bundles >> but they don't really seem to get into the nuts and bolts about how >> to build them for custom situations like this. > > You can either use the --resource=<path_to_a_file_or_folder> option, or > add it to the resources list in your buildapp.py. In both cases, the > file will end up in <YourApp>.app/Contents/Resources, which is a fine > place since it's on sys.path when you app executes. > > Just > |