[Pyobjc-dev] Help in bundling our PyObjC app?
Brought to you by:
ronaldoussoren
From: Gary R. <gro...@tr...> - 2003-06-13 01:47:39
|
Hello, I have two questions and would be grateful for help... Question 1: We're creating an OS X app with PyObjC. We have never created an OS X bundle before so we are quite the newbies in this regard. We have also never used python's freeze or other executable-generating capabilities. So our questions are going to be pretty naive. In fact we are just at the outset of doing this packaging work, and at this point are just looking for general guidance for how to go about it so that our learning time will be spent efficiently. Our application will be running a couple of separate "slave" straight Python (not Cocoa) scripts to handle some asynchronous tasks. Currently these scripts are started and managed with the popen2.Popen4 class. These slave scripts have to use a version of Python compiled to have SSL enabled. So they can't use the stock Python. I'm wondering if anyone has advice as to how we should put our Cocoa-Python app together with these separate scripts in a package for the user. I envision a bundle that contains the main app and the separate scripts in a folder on disk; these all appear to be one unit to the user if I understand bundles correctly. Since the separate scripts need an SSL-enabled Python, is there some way to include that Python in the bundle so that the scripts can share it? Or must each such script have the SSL Python separately merged into it? Question 2: The bundlebuilder.py script includes the following comment: # The # bootstrapping script fires up the interpreter with the right # arguments. os.execve() is used as OSX doesn't like us to # start a real new process. This comment made me feel concerned about our use of popen2.Popen4, mentioned above, to start "real new processes". We have had no problems in our internal testing, but does anyone know of anything we should worry about with this? Many thanks in advance for any and all help! --Gary -- <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 |