Skip to content

Commit 99b5d18

Browse files
committed
[GR-18642] Adapt benchmarks to new C API location.
PullRequest: graalpython/676
2 parents 9e4a471 + 5527d28 commit 99b5d18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def run(self, cwd, args):
278278
if mx.suite("sulong-managed", fatalIfMissing=False):
279279
dists.append('SULONG_MANAGED')
280280

281-
extra_polyglot_args += ["--experimental-options", "-ensure-capi"]
281+
extra_polyglot_args += ["--experimental-options", "--python.CAPI=%s" % SUITE.extensions._get_capi_home() ]
282282

283283
vm_args = mx.get_runtime_jvm_args(dists, cp_suffix=self._cp_suffix, cp_prefix=self._cp_prefix)
284284
if isinstance(self._extra_vm_args, list):
@@ -296,7 +296,6 @@ def run(self, cwd, args):
296296
host_vm = self.host_vm()
297297
if not self._env:
298298
self._env = dict()
299-
self._env["PYTHONUSERBASE"] = mx_subst.path_substitutions.substitute("<path:PYTHON_USERBASE>")
300299
with environ(self._env):
301300
if hasattr(host_vm, 'run_lang'):
302301
return host_vm.run_lang('graalpython', extra_polyglot_args + args, cwd)

0 commit comments

Comments
 (0)