72
72
SUITE_COMPILER = mx .suite ("compiler" , fatalIfMissing = False )
73
73
SUITE_SULONG = mx .suite ("sulong" )
74
74
75
+ GRAALPYTHON_MAIN_CLASS = "com.oracle.graal.python.shell.GraalPythonMain"
76
+
75
77
76
78
if PY3 :
77
79
raw_input = input # pylint: disable=redefined-builtin;
@@ -128,7 +130,7 @@ def python(args, **kwargs):
128
130
do_run_python (args , ** kwargs )
129
131
130
132
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 ):
132
134
if not any (arg .startswith ("--python.CAPI" ) for arg in args ):
133
135
capi_home = _get_capi_home ()
134
136
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
177
179
if extra_vm_args :
178
180
vm_args += extra_vm_args
179
181
180
- vm_args .append ("com.oracle.graal.python.shell.GraalPythonMain" )
182
+ vm_args .append (main_class )
181
183
return mx .run_java (vm_args + graalpython_args , jdk = jdk , env = env , ** kwargs )
182
184
183
185
@@ -1403,6 +1405,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
1403
1405
suite = SUITE ,
1404
1406
name = 'Graal.Python' ,
1405
1407
short_name = 'pyn' ,
1408
+ installable_id = 'graalpython' ,
1406
1409
dir_name = 'python' ,
1407
1410
standalone_dir_name = 'graalpython-<version>-<graalvm_os>-<arch>' ,
1408
1411
license_files = [],
@@ -1425,7 +1428,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
1425
1428
mx_sdk .LanguageLauncherConfig (
1426
1429
destination = 'bin/<exe:graalpython>' ,
1427
1430
jar_distributions = ['graalpython:GRAALPYTHON-LAUNCHER' ],
1428
- main_class = 'com.oracle.graal.python.shell.GraalPythonMain' ,
1431
+ main_class = GRAALPYTHON_MAIN_CLASS ,
1429
1432
build_args = [
1430
1433
'-H:+TruffleCheckBlackListedMethods' ,
1431
1434
'-H:+DetectUserDirectoriesInImageHeap' ,
@@ -1434,6 +1437,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
1434
1437
language = 'python' ,
1435
1438
)
1436
1439
],
1440
+ priority = 5
1437
1441
))
1438
1442
1439
1443
0 commit comments