7272SUITE_COMPILER = mx .suite ("compiler" , fatalIfMissing = False )
7373SUITE_SULONG = mx .suite ("sulong" )
7474
75+ GRAALPYTHON_MAIN_CLASS = "com.oracle.graal.python.shell.GraalPythonMain"
76+
7577
7678if PY3 :
7779 raw_input = input # pylint: disable=redefined-builtin;
@@ -128,7 +130,7 @@ def python(args, **kwargs):
128130 do_run_python (args , ** kwargs )
129131
130132
131- def do_run_python (args , extra_vm_args = None , env = None , jdk = None , extra_dists = None , cp_prefix = None , cp_suffix = None , ** kwargs ):
133+ def do_run_python (args , extra_vm_args = None , env = None , jdk = None , extra_dists = None , cp_prefix = None , cp_suffix = None , main_class = GRAALPYTHON_MAIN_CLASS , ** kwargs ):
132134 if not any (arg .startswith ("--python.CAPI" ) for arg in args ):
133135 capi_home = _get_capi_home ()
134136 args .insert (0 , "--experimental-options" )
@@ -177,7 +179,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None
177179 if extra_vm_args :
178180 vm_args += extra_vm_args
179181
180- vm_args .append ("com.oracle.graal.python.shell.GraalPythonMain" )
182+ vm_args .append (main_class )
181183 return mx .run_java (vm_args + graalpython_args , jdk = jdk , env = env , ** kwargs )
182184
183185
@@ -1403,6 +1405,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
14031405 suite = SUITE ,
14041406 name = 'Graal.Python' ,
14051407 short_name = 'pyn' ,
1408+ installable_id = 'graalpython' ,
14061409 dir_name = 'python' ,
14071410 standalone_dir_name = 'graalpython-<version>-<graalvm_os>-<arch>' ,
14081411 license_files = [],
@@ -1425,7 +1428,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
14251428 mx_sdk .LanguageLauncherConfig (
14261429 destination = 'bin/<exe:graalpython>' ,
14271430 jar_distributions = ['graalpython:GRAALPYTHON-LAUNCHER' ],
1428- main_class = 'com.oracle.graal.python.shell.GraalPythonMain' ,
1431+ main_class = GRAALPYTHON_MAIN_CLASS ,
14291432 build_args = [
14301433 '-H:+TruffleCheckBlackListedMethods' ,
14311434 '-H:+DetectUserDirectoriesInImageHeap' ,
@@ -1434,6 +1437,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
14341437 language = 'python' ,
14351438 )
14361439 ],
1440+ priority = 5
14371441))
14381442
14391443
0 commit comments