<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">A quick and dirty compile of Python 1.4 with EMX 0.9c (emxfix 02) for OS/2.

I wanted to use Python 1.4 with OS/2 and was disapointed to find nothing 
but outdated python binaries on the internet.
Here are the results of my efforts to have a working Python 1.4 under OS/2.

The Makefiles and config.h used for the build are hacked versions of those
generated by a run of autoconf (configure) on my Linux system at home.

I have added some #if(n)def to the sources and some stuff to allow dynamic
loading of modules under OS/2.  It's not well tested but it seems to work (at
least with the sample xxmodule).

socket support seems to work too (thanks to E. Mattes's EMX!).

The diffs are made against the original sources from the archive
python-1.4.tar.gz which was downloaded from ftp.python.org .

If you want to recompile the program yourself, get the sources, apply the patch
(with GNU patch!) and run makeos2.cmd.
This patch is for a build without the readline library (the binaries provided
support readline).

Basically, you will have to do something like:

	gzip -d python1.4.tar.gz
	tar xvf python1.4.tar
	cd python-1.4
	patch -p1 &lt; /somewhere/python1.4-emx.diff
	makeos2	

Note: Under OS/2, I had to create explicitly the directory python-1.4\lib\os2
BEFORE running GNU patch. The one I have is dated 1994 and doesn't seem to work
well.

If you have readline and want to use it, you will have to do minor
modifications in config.h, python14.def and Modules/Makefile.

Python.exe and Python14.dll are useless without the Python library. Even if you
don't want to rebuild the program, you need to install the library from the
original archive (and see the docs about the environment variable PYTHONPATH).

Do whatever you want with this executable and diffs but don't blame me if it
doesn't work or crash/destroy your computer.

For documentation and FAQ about Python -&gt; http://www.python.org

Sorry for my broken english and the lack of documentation...
--
Guy Vallet &lt;gvallet@xanth.dedal.fr.net&gt;
</pre></body></html>