|
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 |
|
@@ -1425,7 +1427,7 @@ def verify_ci(dest_suite, common_ci_dir="ci_common", args=None, ext=('.jsonnet',
|
1425 | 1427 | mx_sdk.LanguageLauncherConfig(
|
1426 | 1428 | destination='bin/<exe:graalpython>',
|
1427 | 1429 | jar_distributions=['graalpython:GRAALPYTHON-LAUNCHER'],
|
1428 |
| - main_class='com.oracle.graal.python.shell.GraalPythonMain', |
| 1430 | + main_class=GRAALPYTHON_MAIN_CLASS, |
1429 | 1431 | build_args=[
|
1430 | 1432 | '-H:+TruffleCheckBlackListedMethods',
|
1431 | 1433 | '-H:+DetectUserDirectoriesInImageHeap',
|
|
0 commit comments