![]() |
|
SitemapGetting StartedUtilities Spec Files When Things Go Wrong Standalone Executables Python Archives Analyzing Python Modules An Import Framework Bug Tracker |
Self-extracting executablesThe ELF executable format (Windows, Linux and some others) allows arbitrary data to be concatenated to the end of the executable without disturbing it's functionality. For this reason, a CArchive's Table of Contents is at the end of the archive. The executable can open itself as a binary file name, seek to the end and 'open' the CArchive (see figure 3). On other platforms, the archive and the executable are separate, but the archive is named executable.pkg, and expected to be in the same directory. Other than that, the process is the same. One Pass ExecutionIn a single directory deployment (
Two Pass ExecutionThere are a couple situations which require two passes:
The first pass:
The child process executes as in One Pass Execution above (the magic environment variable is what tells it that this is pass two).
There are, of course, quite a few differences between the Windows and Unix/Linux versions. The major one is that because all of Python on Windows is in pythonXX.dll, and dynamic loading is so simple-minded, I can use one binary with any version of Python. There's much in common, though, and that C code can be found in The Unix/Linux build process (which you need to run just once for any version of Python) makes use of the config information in your install (if you installed from RPM, you need the Python-development RPM). It also overrides In both cases, while one Installer download can be used with any Python version, you need to have separate installations for each Python version. |
copyright 1999-2002 McMillan Enterprises, Inc. |