home *** CD-ROM | disk | FTP | other *** search
- WHAT'S THIS
- -----------
-
- This is the interpreter of the well-known Python scripting language.
- The reason for yet another binary OS/2 distribution is that it provides
- a little more functionality than the original VACPP port (support for
- Python modules in DLLs). Another reason is that some functions exported
- from Python.dll accepts an FILE* argument, and it is impossible to pass
- an EMX' FILE* to the VACPP DLL. It will trap in the best case. So if you
- are developing a program that uses Python as the scripting language
- (such as the Crystal Space project) you won't be able to use VACPP dll
- if you're using the EMX toolset.
-
- By default Python will use the GNU readline library for input. GNU readline
- will provide miscelaneous input features such as command history, redefinable
- keymap and so on; also this means that to quit an interactive Python session
- you should press Ctrl+D (and not "Ctrl+Z plus Return" how is suggested if you
- type "exit"). Ctrl+Z will work if you remove the lib/python1.5/readline.dll
- module, and the input will happen through the "usual" OS/2 line reading
- routine.
-
-
- INSTALLATION
- ------------
-
- If you're an developer, just unpack everything on top of the emx
- directory. Two small launchers (python.exe and pythonpm.exe) will go
- into emx/bin, the dll's will go to emx/dll, the includes and libraries
- will go to respective locations.
-
- If you're just a regular user, you don't need the includes and the libraries.
- In this case you should copy the contents of bin/ directory anywhere
- along your PATH; then copy the contents of lib/python1.5 directory
- anywhere where you feel it is suitable, for example you may copy
- it under OS2/APPS/PYTHON1.5.
-
- Then you have to tell PYTHON where to look for his modules. This is
- done by adding to your CONFIG.SYS a line like this one:
-
- set PYTHONPATH=f:/emx/lib/python1.5
-
- or
-
- set PYTHONPATH=c:\os2\apps\python1.5
-
- Finally, reboot for this change to have effect.
-
- Also you may want to copy the GNU readline library initialization file
- .inputrc (which should be in same directory) into your home directory,
- if you don't have one already there. If you don't have a home directory,
- create one anywhere you like, then add to CONFIG.SYS a line like:
-
- set HOME=d:/home/username
-
- If you need the Python documentation, download it from www.python.org.
-
-
- HOW TO BUILD
- ------------
-
- To rebuild Python using GCC+EMX:
-
- - Download the sources
- - Apply the patches in src/Python
- - Copy the os2emx directory under PC/os2emx
- - Go to os2emx directory and type "make".
-
- Andrew Zabolotny, <bit@eltech.ru>
-