]> granicus.if.org Git - python/commitdiff
PEP 3149: Try to load the extension with the SOABI before trying
authorMatthias Klose <doko@ubuntu.com>
Wed, 8 Sep 2010 16:22:10 +0000 (16:22 +0000)
committerMatthias Klose <doko@ubuntu.com>
Wed, 8 Sep 2010 16:22:10 +0000 (16:22 +0000)
to load the one without the SOABI in the name.

Python/dynload_shlib.c

index 04542c9cd2bbb88cacb9e8e9d15bc05402578bb1..3d0fb5eb01afc9c240ec4fd1fb2a169e85cf9a6f 100644 (file)
@@ -52,8 +52,8 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
     {"MODULE.EXE", "rb", C_EXTENSION},
 #else  /* !__VMS */
     {"." SOABI ".so", "rb", C_EXTENSION},
-    {".so", "rb", C_EXTENSION},
     {"module." SOABI ".so", "rb", C_EXTENSION},
+    {".so", "rb", C_EXTENSION},
     {"module.so", "rb", C_EXTENSION},
 #endif  /* __VMS */
 #endif  /* defined(PYOS_OS2) && defined(PYCC_GCC) */