Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ba48ba

Browse files
committed
Added Jeff Rush' comments
1 parent d3af2f3 commit 0ba48ba

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

PC/readme.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,42 @@ wat_dos A 32-bit extended DOS Python (console-mode) using the
192192

193193
wat_os2 A 32-bit OS/2 Python (console-mode).
194194
Sockets are not included.
195+
196+
IBM VisualAge C/C++ for OS/2
197+
============================
198+
199+
To build Python for OS/2, change into ./os2vacpp and issue an
200+
'NMAKE' command. This will build a PyCore15.dll containing the
201+
set of Python modules listed in config.c and a small Python.exe
202+
to start the interpreter.
203+
204+
During the build process you will see a couple of harmless warnings:
205+
206+
From the C Compiler, "No function prototype given for XXX", which
207+
comes from the use of K&R parameters within Python for portability.
208+
209+
From the ILIB librarian, "Module Not Found (XXX)", which comes
210+
from its attempt to perform the (-+) operation, which removes and
211+
then adds a .OBJ to the library. The first time a build is done,
212+
it obviously cannot remove what is not yet built.
213+
214+
This build includes support for most Python functionality as well
215+
as TCP/IP sockets. It omits the Posix ability to 'fork' a process
216+
but supports threads using OS/2 native capabilities. I have tried
217+
to support everything possible, even popen() to run a child process
218+
and communicate with it via a pipe.
219+
220+
With respect to the environment variables for Python, I use the
221+
following setup:
222+
223+
Set PYTHONHOME=E:\Tau\Projects\Python
224+
Set PYTHONPATH=.;E:\Tau\Projects\Python\Lib; \
225+
E:\Tau\Projects\Python\Lib\Plat-OS2
226+
227+
If you have questions or problems specifically with the VAC++ port
228+
of Python, please contact me at:
229+
230+
Jeff Rush <[email protected]>.
231+
232+
I support no other platform but OS/2 (and eventually AmigaDOS).
233+

0 commit comments

Comments
 (0)