[Pythonmac-SIG] Distributing Python Applications
Etienne Antoniutti Di Muro
etienne@alias.it
Thu, 31 Aug 2000 10:30:45 +0200
List members, hello there! :-)
I'm interested in shipping an application. MyApp usese two technologies:
Python and C++.
I've built some modules (MyMods.py) for the Python side of MyApp, that work
along with the standard python modules.
MyApp C++ side uses those modules quite like a shared library (intensive use
of embedding/extending python), having PythonCore linked to the code and
initializing the Python interpreter at startup.
Well the *BIG* deal is:
I would like to ship MyApp to an average Mac User, hiding the python
technology throughout the whole use of MyApp.
This mostly deals with: installation of PythonCore & base Python Modules &
managing PythonPrefs.
My Idea is:
1- Python is alredy present on the Mac that will host MyApp (do I detect this
just reading "Python Preferences", if any, in the System Folder??): no
problem, I will add the path to MyMods.py to python prefs.
2- Python is not present on MyApp User Mac:I need to install PythonCore+basic
Modules+MyMods.py +write python preferences.
step 1: MyApp Installer will copy python essentials onto the User HD,
step 2: How does MyApp Installer set up Python Preferences (using whether C++
or Python), before PythonCore is properly initialized in its new location?
question: Should I compile any of python essential modules (= generate '.pyc'
files) for the specific Mac, before the first run??
step "user friendly": Into the Macintosh Word a user feels free to move
around his HD folders and application, keeping them working in any location.
This implies a big work "behind the scenes" to keep track of paths in all
that moving. How to let MyApp do this for me and MyApp User?? I've always in
mind my first sperimentation with python: after every move of PYTHON HOME,
nothing worked until PythonPrefs were correctly updated . How to avoid this
boring chore?
That's it!! Any suggestion ???
thanx
etienne
--
it's time to leave this town
it's time to steal away
let's go get lost
anywhere in the U.S.A. (RHCP)