File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -462,8 +462,8 @@ Object run(
462
462
static String getSoAbi (PythonContext ctxt ) {
463
463
PythonModule sysModule = ctxt .getCore ().lookupBuiltinModule ("sys" );
464
464
Object implementationObj = ReadAttributeFromObjectNode .getUncached ().execute (sysModule , "implementation" );
465
- // sys.implementation.name
466
- String implName = (String ) PInteropGetAttributeNode .getUncached ().execute (implementationObj , "name " );
465
+ // sys.implementation.cache_tag
466
+ String cacheTag = (String ) PInteropGetAttributeNode .getUncached ().execute (implementationObj , "cache_tag " );
467
467
// sys.implementation._multiarch
468
468
String multiArch = (String ) PInteropGetAttributeNode .getUncached ().execute (implementationObj , "_multiarch" );
469
469
@@ -480,7 +480,7 @@ static String getSoAbi(PythonContext ctxt) {
480
480
soExt = ".so" ;
481
481
}
482
482
483
- return "." + implName + "-" + toolchainId + "-" + multiArch + soExt ;
483
+ return "." + cacheTag + "-" + toolchainId + "-" + multiArch + soExt ;
484
484
}
485
485
}
486
486
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def make_implementation_info():
44
44
)
45
45
return SimpleNamespace (
46
46
name = "graalpython" ,
47
- cache_tag = None ,
47
+ cache_tag = "graalpython" ,
48
48
version = version_info_type (version_info ),
49
49
_multiarch = __gmultiarch
50
50
)
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def _init_posix():
65
65
darwin_native = sys .platform == "darwin" and __graalpython__ .platform_id == "native"
66
66
67
67
# note: this must be kept in sync with _imp.extension_suffixes
68
- so_abi = sys .implementation .name + "-" + __graalpython__ .platform_id + "-" + sys .implementation ._multiarch
68
+ so_abi = sys .implementation .cache_tag + "-" + __graalpython__ .platform_id + "-" + sys .implementation ._multiarch
69
69
so_ext = ".so" if not darwin_native else ".dylib"
70
70
assert _imp .extension_suffixes ()[0 ] == "." + so_abi + so_ext , "mismatch between extension suffix to _imp.extension_suffixes"
71
71
You can’t perform that action at this time.
0 commit comments