Skip to content

Commit b48925a

Browse files
committed
python#16135: Removal of OS/2 support (I)
1 parent d4b5aaa commit b48925a

File tree

7 files changed

+3
-330
lines changed

7 files changed

+3
-330
lines changed

Mac/Tools/bundlebuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __load():
270270
del __load
271271
"""
272272

273-
MAYMISS_MODULES = ['mac', 'os2', 'nt', 'ntpath', 'dos', 'dospath',
273+
MAYMISS_MODULES = ['mac', 'nt', 'ntpath', 'dos', 'dospath',
274274
'win32api', 'ce', '_winreg', 'nturl2path', 'sitecustomize',
275275
'org.python.core', 'riscos', 'riscosenviron', 'riscospath'
276276
]

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ Build
125125
- Issue #15923: Fix a mistake in ``asdl_c.py`` that resulted in a TypeError
126126
after 2801bf875a24 (see #15801).
127127

128+
- Issue #16135: Remove OS/2 support.
129+
128130
- Issue #15819: Make sure we can build Python out-of-tree from a readonly source
129131
directory. (Somewhat related to Issue #9860.)
130132

Python/dynload_os2.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

Python/dynload_shlib.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818

1919
#ifdef HAVE_DLFCN_H
2020
#include <dlfcn.h>
21-
#else
22-
#if defined(PYOS_OS2) && defined(PYCC_GCC)
23-
#include "dlfcn.h"
24-
#endif
2521
#endif
2622

2723
#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
@@ -40,10 +36,6 @@ const char *_PyImport_DynLoadFiletab[] = {
4036
#ifdef __CYGWIN__
4137
".dll",
4238
#else /* !__CYGWIN__ */
43-
#if defined(PYOS_OS2) && defined(PYCC_GCC)
44-
".pyd",
45-
".dll",
46-
#else /* !(defined(PYOS_OS2) && defined(PYCC_GCC)) */
4739
#ifdef __VMS
4840
".exe",
4941
".EXE",
@@ -52,7 +44,6 @@ const char *_PyImport_DynLoadFiletab[] = {
5244
".abi" PYTHON_ABI_STRING ".so",
5345
".so",
5446
#endif /* __VMS */
55-
#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */
5647
#endif /* __CYGWIN__ */
5748
NULL,
5849
};
@@ -111,9 +102,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
111102
}
112103
}
113104

114-
#if !(defined(PYOS_OS2) && defined(PYCC_GCC))
115105
dlopenflags = PyThreadState_GET()->interp->dlopenflags;
116-
#endif
117106

118107
#ifdef __VMS
119108
/* VMS currently don't allow a pathname, use a logical name instead */

Python/importdl.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname,
1818
#include <windows.h>
1919
typedef FARPROC dl_funcptr;
2020
#else
21-
#if defined(PYOS_OS2) && !defined(PYCC_GCC)
22-
#include <os2def.h>
23-
typedef int (* APIENTRY dl_funcptr)();
24-
#else
2521
typedef void (*dl_funcptr)(void);
2622
#endif
27-
#endif
2823

2924

3025
#ifdef __cplusplus

Python/thread.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ static size_t _pythread_stacksize = 0;
9191
#include "thread_nt.h"
9292
#endif
9393

94-
#ifdef OS2_THREADS
95-
#define PYTHREAD_NAME "os2"
96-
#include "thread_os2.h"
97-
#endif
9894

9995
/*
10096
#ifdef FOOBAR_THREADS

Python/thread_os2.h

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)