Skip to content

Commit 050c572

Browse files
committed
Add distribution for dev user base.
1 parent 3a56c79 commit 050c572

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, **kwargs):
112112
check_vm()
113113

114114
dists = ['GRAALPYTHON', 'TRUFFLE_NFI', 'SULONG']
115+
env["PYTHONUSERBASE"] = mx_subst.path_substitutions.substitute("<path:PYTHON_USERBASE>")
115116

116117
vm_args, graalpython_args = mx.extract_VM_args(args, useDoubleDash=True, defaultAllVMArgs=False)
117118
graalpython_args, additional_dists = _extract_graalpython_internal_options(graalpython_args)
@@ -147,7 +148,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, **kwargs):
147148
vm_args += extra_vm_args
148149

149150
vm_args.append("com.oracle.graal.python.shell.GraalPythonMain")
150-
return mx.run_java(vm_args + graalpython_args, jdk=jdk, **kwargs)
151+
return mx.run_java(vm_args + graalpython_args, jdk=jdk, env=env, **kwargs)
151152

152153

153154
def punittest(args):

mx.graalpython/suite.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@
289289
"distDependencies": [
290290
"sdk:GRAAL_SDK",
291291
"sdk:LAUNCHER_COMMON",
292+
"PYTHON_USERBASE",
292293
],
293294
"description": "GraalPython launcher",
294295
},
@@ -383,5 +384,15 @@
383384
},
384385
"maven": False,
385386
},
387+
388+
"PYTHON_USERBASE": {
389+
"native": True,
390+
"platformDependent": False,
391+
"description": "Blub",
392+
"layout": {
393+
"./README.md": "string:User base directory for development purpose.",
394+
},
395+
"maven": False,
396+
},
386397
},
387398
}

0 commit comments

Comments
 (0)