xpython is a python interpreter contained in a single executable file, with a number of libraries already linked in.

It contains the following libraries and/or python modules:

xpython hence makes it very easy to install Python programs based on one of the above libraries (in particular, wxPython applications) on systems without mentionable package management, like Windows or Solaris, or on systems where you don't have root access.


xpython.exe, Version 0.3.0

xpython Source Code, Version 0.3.0 (includes source for libraries/modules)


Just run xpython.exe like you would python.exe:

xpython.exe program.py

If program.py does any imports based on wxWindows, Imaging etc., those will be served from the data contained in xpython.exe itself.


In order to compile xpython for Windows, pass your mingw version to the configure script:

CXX=/opt/xmingw/bin/i386-mingw32msvc-g++ \
CPP=/opt/xmingw/bin/i386-mingw32msvc-cpp \
CC=/opt/xmingw/bin/i386-mingw32msvc-gcc \
AR=/opt/xmingw/bin/i386-mingw32msvc-ar \
RANLIB=/opt/xmingw/bin/i386-mingw32msvc-ranlib \
STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip \
WINDRES=/opt/xmingw/bin/i386-mingw32msvc-windres \
NM=/opt/xmingw/bin/i386-mingw32msvc-nm \
 ./configure --host=i586-mingw32msvc

The above is only an example, for how to do this on Gentoo systems- your host environment might differ.

For other systems, just do the usual