Re: [Pyobjc-dev] Help in bundling our PyObjC app?
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@ma...> - 2003-06-15 12:08:56
|
On Friday, June 13, 2003, at 11:52 AM, Gary Robinson wrote: > 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. It should be a bit easier than that. If you grab the pyssl module from.... http://pyobjc.sf.net/software/ .... it should compile with a simple ... python setup.py build ... and, looking with the build directory, you'll find _socket.so (or something similar). This .so simply needs to be somewhere in the PYTHONPATH (sys.path) before the socket module installed with Python. So, assuming that the Resources directory of the application is before /usr/lib/python2.2 in sys.path (which it is, I'm fairly certain), you simply need to copy _socket.so into the Resources/ directory of your application. You shouldn't need a custom NSBundle/CFBundle just for the socket module. b.bum |