home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / python14.zip / README < prev   
Text File  |  1996-11-17  |  2KB  |  51 lines

  1. A quick and dirty compile of Python 1.4 with EMX 0.9c (emxfix 02) for OS/2.
  2.  
  3. I wanted to use Python 1.4 with OS/2 and was disapointed to find nothing 
  4. but outdated python binaries on the internet.
  5. Here are the results of my efforts to have a working Python 1.4 under OS/2.
  6.  
  7. The Makefiles and config.h used for the build are hacked versions of those
  8. generated by a run of autoconf (configure) on my Linux system at home.
  9.  
  10. I have added some #if(n)def to the sources and some stuff to allow dynamic
  11. loading of modules under OS/2.  It's not well tested but it seems to work (at
  12. least with the sample xxmodule).
  13.  
  14. socket support seems to work too (thanks to E. Mattes's EMX!).
  15.  
  16. The diffs are made against the original sources from the archive
  17. python-1.4.tar.gz which was downloaded from ftp.python.org .
  18.  
  19. If you want to recompile the program yourself, get the sources, apply the patch
  20. (with GNU patch!) and run makeos2.cmd.
  21. This patch is for a build without the readline library (the binaries provided
  22. support readline).
  23.  
  24. Basically, you will have to do something like:
  25.  
  26.     gzip -d python1.4.tar.gz
  27.     tar xvf python1.4.tar
  28.     cd python-1.4
  29.     patch -p1 < /somewhere/python1.4-emx.diff
  30.     makeos2    
  31.  
  32. Note: Under OS/2, I had to create explicitly the directory python-1.4\lib\os2
  33. BEFORE running GNU patch. The one I have is dated 1994 and doesn't seem to work
  34. well.
  35.  
  36. If you have readline and want to use it, you will have to do minor
  37. modifications in config.h, python14.def and Modules/Makefile.
  38.  
  39. Python.exe and Python14.dll are useless without the Python library. Even if you
  40. don't want to rebuild the program, you need to install the library from the
  41. original archive (and see the docs about the environment variable PYTHONPATH).
  42.  
  43. Do whatever you want with this executable and diffs but don't blame me if it
  44. doesn't work or crash/destroy your computer.
  45.  
  46. For documentation and FAQ about Python -> http://www.python.org
  47.  
  48. Sorry for my broken english and the lack of documentation...
  49. --
  50. Guy Vallet <gvallet@xanth.dedal.fr.net>
  51.