diff options
author | Barry Warsaw <barry@python.org> | 2010-09-03 18:30:30 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2010-09-03 18:30:30 (GMT) |
commit | 35f3a2cbeb5a2aabeb83d5e451e9560fcd288029 (patch) | |
tree | 3f64b1e1112301942579512e5f8de4e3f2f983c5 /Python/dynload_shlib.c | |
parent | e4ea994f20a7fb1d505fca48295a196645dce9b6 (diff) | |
download | cpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.zip cpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.tar.gz cpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.tar.bz2 |
PEP 3149 is accepted.
http://mail.python.org/pipermail/python-dev/2010-September/103408.html
Diffstat (limited to 'Python/dynload_shlib.c')
-rw-r--r-- | Python/dynload_shlib.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 87dae27..04542c9 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -30,27 +30,34 @@ #define LEAD_UNDERSCORE "" #endif +/* The .so extension module ABI tag, supplied by the Makefile via + Makefile.pre.in and configure. This is used to discriminate between + incompatible .so files so that extensions for different Python builds can + live in the same directory. E.g. foomodule.cpython-32.so +*/ const struct filedescr _PyImport_DynLoadFiletab[] = { #ifdef __CYGWIN__ {".dll", "rb", C_EXTENSION}, {"module.dll", "rb", C_EXTENSION}, -#else +#else /* !__CYGWIN__ */ #if defined(PYOS_OS2) && defined(PYCC_GCC) {".pyd", "rb", C_EXTENSION}, {".dll", "rb", C_EXTENSION}, -#else +#else /* !(defined(PYOS_OS2) && defined(PYCC_GCC)) */ #ifdef __VMS {".exe", "rb", C_EXTENSION}, {".EXE", "rb", C_EXTENSION}, {"module.exe", "rb", C_EXTENSION}, {"MODULE.EXE", "rb", C_EXTENSION}, -#else +#else /* !__VMS */ + {"." SOABI ".so", "rb", C_EXTENSION}, {".so", "rb", C_EXTENSION}, + {"module." SOABI ".so", "rb", C_EXTENSION}, {"module.so", "rb", C_EXTENSION}, -#endif -#endif -#endif +#endif /* __VMS */ +#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */ +#endif /* __CYGWIN__ */ {0, 0} }; |