Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6b4d5 commit c229e6eCopy full SHA for c229e6e
7 files changed
Doc/whatsnew/3.3.rst
@@ -939,6 +939,20 @@ Porting C code
939
:c:func:`PyUnicode_FromFormat()`, your code will automatically take
940
advantage of the new unicode representations.
941
942
+Building C extensions
943
+---------------------
944
+
945
+* The range of possible file names for C extensions has been narrowed.
946
+ Very rarely used spellings have been suppressed: under POSIX, files
947
+ named ``xxxmodule.so``, ``xxxmodule.abi3.so`` and
948
+ ``xxxmodule.cpython-*.so`` are no longer recognized as implementing
949
+ the ``xxx`` module. If you had been generating such files, you have
950
+ to switch to the other spellings (i.e., remove the ``module`` string
951
+ from the file names).
952
953
+ (implemented in :issue:`14040`.)
954
955
956
Other issues
957
------------
958
Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.3 Alpha 1?
10
Core and Builtins
11
-----------------
12
13
+- Issue #14040: Remove rarely used file name suffixes for C extensions
14
+ (under POSIX mainly).
15
16
- Issue #14051: Allow arbitrary attributes to be set of classmethod and
17
staticmethod.
18
Python/dynload_aix.c
@@ -28,7 +28,6 @@ typedef struct Module {
28
29
const struct filedescr _PyImport_DynLoadFiletab[] = {
30
{".so", "rb", C_EXTENSION},
31
- {"module.so", "rb", C_EXTENSION},
32
{0, 0}
33
};
34
Python/dynload_dl.c
@@ -11,7 +11,6 @@ extern char *Py_GetProgramName(void);
{".o", "rb", C_EXTENSION},
- {"module.o", "rb", C_EXTENSION},
Python/dynload_hpux.c
@@ -15,7 +15,6 @@
{SHLIB_EXT, "rb", C_EXTENSION},
- {"module"SHLIB_EXT, "rb", C_EXTENSION},
19
20
21
Python/dynload_next.c
@@ -10,7 +10,6 @@
Python/dynload_shlib.c
@@ -39,7 +39,6 @@
39
40
#ifdef __CYGWIN__
41
{".dll", "rb", C_EXTENSION},
42
- {"module.dll", "rb", C_EXTENSION},
43
#else /* !__CYGWIN__ */
44
#if defined(PYOS_OS2) && defined(PYCC_GCC)
45
{".pyd", "rb", C_EXTENSION},
@@ -48,15 +47,10 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
48
47
#ifdef __VMS
49
{".exe", "rb", C_EXTENSION},
50
{".EXE", "rb", C_EXTENSION},
51
- {"module.exe", "rb", C_EXTENSION},
52
- {"MODULE.EXE", "rb", C_EXTENSION},
53
#else /* !__VMS */
54
{"." SOABI ".so", "rb", C_EXTENSION},
55
- {"module." SOABI ".so", "rb", C_EXTENSION},
56
{".abi" PYTHON_ABI_STRING ".so", "rb", C_EXTENSION},
57
- {"module.abi" PYTHON_ABI_STRING ".so", "rb", C_EXTENSION},
58
59
60
#endif /* __VMS */
61
#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */
62
#endif /* __CYGWIN__ */
0 commit comments