Skip to content

Commit de6d3b2

Browse files
committed
[GR-14413] allow setting classpath prefix when calling the mx extension python directly
PullRequest: graalpython/753
2 parents f88e69f + 3d04d8d commit de6d3b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ overlay: "88ca31128960b890766c1c6266f62db4e6699c5c" }
1+
{ overlay: "9c01bf051c60a83731b2cabd5b06c50e31624741" }

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def python(args, **kwargs):
119119
do_run_python(args, **kwargs)
120120

121121

122-
def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None, **kwargs):
122+
def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None, cp_prefix=None, cp_suffix=None, **kwargs):
123123
if not any(arg.startswith("--python.CAPI") for arg in args):
124124
capi_home = _get_capi_home()
125125
args.insert(0, "--python.CAPI=%s" % capi_home)
@@ -158,7 +158,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None
158158

159159
graalpython_args.insert(0, '--experimental-options=true')
160160

161-
vm_args += mx.get_runtime_jvm_args(dists, jdk=jdk)
161+
vm_args += mx.get_runtime_jvm_args(dists, jdk=jdk, cp_prefix=cp_prefix, cp_suffix=cp_suffix)
162162

163163
if not jdk:
164164
jdk = get_jdk()

0 commit comments

Comments
 (0)