ftp.python.org in /incoming

This directory contains patches to provide Mach thread support for Python.  I've tested this under NEXTSTEP 3.3.

Patches should be made starting in the top level of the Python source tree.

The changed or added files:

       configure                      from autoconf
       configure.in                   patched for NEXTSTEP
       configure.in.diff              diff from Python 1.3
       Modules/
               threadmodule.c              unused variable removed
               threadmodule.c.diff         diff from Python 1.3
       Python/
               importdl.c                  pathces from bbum
               importdl.c.diff             diff from Python 1.3
               Makefile.in                 added THREADS
               Makefile.in.diff            diff from Python 1.3
               thread.c                    added MACH_THREADS
               thread.c.diff               diff from Python 1.3
               thread_machthread.h         new, built from thread_cthread.h


Since autoconf does not come with the default NeXT installation, I've provided the configure built with autoconf after I've made my patches for a better NeXT build and threads.

I built this under NEXTSTEP 3.3 from the following:

       configure --with-thread --with-readline=/LocalDeveloper/Libraries

Uncomment the line

#thread threadmodule.c

in Modules/Setup.in.  Your build should work from here.


I'm more than sure that these patches could use a lot more work.  Semaphores are not even addressed in the header file.  I believe that the Mach threads could be a little more supportive of tasks and rejoining, but that will have to wait.  I just wanted to have something to test the demos already provided with Python as well as some new applications, hopefully with Grail.  There are still plenty of warnings under the NEXTSTEP build.  Some of these need to be cleaned (signal in particular), so you may see more posts shortly.  I'm not sure if the Generator.py demo is working correctly with this thread patch.  So press the feedback button.

Please feel free to send comments or suggestions.

Jeff Sickel <mailto:[email protected]>