@@ -90,6 +90,7 @@ def get_boolean_env(name, default=False):
9090SUITE = cast (mx .SourceSuite , mx .suite ('graalpython' ))
9191SUITE_COMPILER = mx .suite ("compiler" , fatalIfMissing = False )
9292
93+ GRAALPY_ABI_VERSION = 'graalpy250'
9394GRAAL_VERSION = SUITE .suiteDict ['version' ]
9495IS_RELEASE = SUITE .suiteDict ['release' ]
9596GRAAL_VERSION_MAJ_MIN = "." .join (GRAAL_VERSION .split ("." )[:2 ])
@@ -1923,7 +1924,7 @@ def graalpy_ext(*_):
19231924 # on Windows we use '.pyd' else '.so' but never '.dylib' (similar to CPython):
19241925 # https://github.com/python/cpython/issues/37510
19251926 ext = 'pyd' if os == 'windows' else 'so'
1926- return f'.graalpy { GRAAL_VERSION_MAJ_MIN . replace ( "." , "" ) + dev_tag () } - { PYTHON_VERSION_MAJ_MIN . replace ( "." , "" )} -native-{ arch } -{ pyos } .{ ext } '
1927+ return f'.{ abi_version ( )} -native-{ arch } -{ pyos } .{ ext } '
19271928
19281929
19291930def dev_tag (_ = None ):
@@ -1949,14 +1950,19 @@ def dev_tag(_=None):
19491950 return res
19501951
19511952
1953+ def abi_version ():
1954+ # The ABI version for wheel cache tag
1955+ return f'{ GRAALPY_ABI_VERSION } { dev_tag ()} -{ PYTHON_VERSION_MAJ_MIN .replace ("." , "" )} '
1956+
1957+
19521958mx_subst .path_substitutions .register_with_arg ('suite' , _get_suite_dir )
19531959mx_subst .path_substitutions .register_with_arg ('suite_parent' , _get_suite_parent_dir )
19541960mx_subst .path_substitutions .register_with_arg ('src_dir' , _get_src_dir )
19551961mx_subst .path_substitutions .register_with_arg ('output_root' , _get_output_root )
19561962mx_subst .path_substitutions .register_with_arg ('py_ver' , py_version_short )
19571963mx_subst .path_substitutions .register_with_arg ('graal_ver' , graal_version_short )
19581964mx_subst .path_substitutions .register_with_arg ('release_level' , release_level )
1959- mx_subst .results_substitutions .register_with_arg ( 'dev_tag ' , dev_tag )
1965+ mx_subst .results_substitutions .register_no_arg ( 'abi_version ' , abi_version )
19601966
19611967mx_subst .path_substitutions .register_no_arg ('graalpy_ext' , graalpy_ext )
19621968mx_subst .results_substitutions .register_no_arg ('graalpy_ext' , graalpy_ext )
0 commit comments