bundling python with application
randall at tnr.cc
Sun Jul 27 02:58:38 CEST 2008
I'd like to bundle Python with my app, which will be targeted at Linux,
Windows and Mac. Discussions I've found about this tend to lead to
py2exe, freeze, etc, but I'd like to do something rather simple and am
What I'd like to do is just copy the standard libraries and
executable(s) and adjust the paths in the environment variables. The
libraries and executable(s) would reside in the same directory with the
application so that you could run the application without needing to
install it. The directory might look like this:
start-app.sh would look like this:
PATH="python_bin:$PATH" PYTHON_HOME="./python_lib" python app_lib/start.py
Of course, there would be a start-app.bat for Windows.
The PATH is altered to make sure the right python interpreter is found
and PYTHON_HOME makes sure the right (local) libraries are found.
Can this be done?
More information about the Python-list