[Pyobjc-dev] Using py2app and distributing a self-contained plug-in which depends on other python li
Brought to you by:
ronaldoussoren
From: Eric H. <eri...@gm...> - 2005-04-24 03:49:46
|
Hi, I've written a python pyObjC based plug-in which I would like to include in a Cocoa application. This plugin depends on another python based library which I would like to include in the final deliverable application (in the app wrapper). I currently was working using the 'python setup.py py2app -A' as seen in the tutorial on the web. This was great for development and everything was fine. The issue now is that I want to create a finished product and I haven't figured out how to do this. My objective is to not require the user to install the library the plugin depends on themselves. I would like to include this library in the app wrapper. I have read some material (tried reading everything I could on using py2app) but I have no found a concrete example and was hoping someone could help me out. Do I just have to do a 'python setup.py py2app' and remove the -A parameter and that's it? From what I've read, py2app will discover the dependencies and include them within the plug-in component. It stores the dependencies in a site-packages.zip file?? Will it unzip this package at run-time and use the dependency??? How does this work? =20 Can anyone give me an explanation or direct me to materials which will help me achieve this goal? I just want the library to exist within the app wrapper so that the application can be moved anywhere on the Mac system and be usable. Any help?=20 Thanks! Eric |