[issue11863] Enforce PEP 11 - remove support for legacy systems

STINNER Victor report at bugs.python.org
Tue Apr 19 16:20:23 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Patch removing cpthread, pth, lwp and solaris thread implementations. The patch on configure.in, around the following diff, is invalid:
----
     AC_DEFINE(_REENTRANT)
-    AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
-    AC_DEFINE(C_THREADS)
-    AC_DEFINE(HURD_C_THREADS, 1,
-    [Define if you are using Mach cthreads directly under /include])
-    LIBS="$LIBS -lthreads"
-    THREADOBJ="Python/thread.o"],[
-    AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
-    AC_DEFINE(C_THREADS)
-    AC_DEFINE(MACH_C_THREADS, 1,
-    [Define if you are using Mach cthreads under mach /])
-    THREADOBJ="Python/thread.o"],[
     # Just looking for pthread_create in libpthread is not enough:
     # on HP/UX, pthread.h renames pthread_create to a different symbol name.
     # So we really have to include pthread.h, and then link.
----

autoconf will have to be run to update configure.

I am not sure that the patch removes all code related to these threads.

----------
keywords: +patch
Added file: http://bugs.python.org/file21722/remove_threads.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11863>
_______________________________________


More information about the Python-bugs-list mailing list