Tom Pollard
2004-03-15 14:14:48 UTC
Personally, I think that the startup script for BitPim should be a
shell script, rather than a Python script.
You should discuss this on bitpim-devel. On the other platforms, andshell script, rather than a Python script.
I had believed Mac as well, the binary distribution of BitPim includes
the Python interpretter and all modules needed (both ones written in
Python and the necessary shared libraries).
have expected you to use the 'freeze' system for packaging a script as
a standalone executable, similarly to 'perl2exe' and it's ilk. These
systems package up the scripts, modules and dlls needed to run a script
in a zip archive with a binary loader prepended. The loader is
responsible for unpacking things, setting up the environment and
executing your script using the bundled interpreter. This lets you run
your script even if perl or python isn't installed at all on the target
machine.
The way BitPim's packaged for the Mac is simpler; MacOS X makes it easy
to do something along the lines of perl2exe without actually using a
single zip archive with a binary loader. But, you still need something
like a loader to kick things off. For BitPim, that's a small Python
script. This seems a little inelegant; since, this first script is the
guy who sets things up so that subsequent python scripts can use the
bundled python interpreter and modules, and so it requires the user to