Skip to content

Commit aab69bb

Browse files
committed
Use 'ARTIFACT_UPLOADER_SCRIPT' environment variable
1 parent 607b9ef commit aab69bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,17 +295,17 @@ def libpythonvm_build_args():
295295
except Exception:
296296
branch = "master"
297297

298-
if shutil.which("artifact_download"):
298+
if script := os.environ.get("ARTIFACT_DOWNLOAD_SCRIPT"):
299299
# This is always available in the GraalPy CI
300300
profile = "cached_profile.iprof.gz"
301301
run(
302302
[
303-
"artifact_download",
303+
sys.executable,
304+
script,
304305
f"graalpy/{commit}",
305306
profile,
306307
],
307308
nonZeroIsFatal=False,
308-
env={"UPLOADER_PYTHON": sys.executable, **os.environ},
309309
)
310310
else:
311311
# Locally, we try to get a reasonable profile
@@ -419,10 +419,11 @@ def graalpy_native_pgo_build_and_test(args=None):
419419
shutil.copyfileobj(f_in, f_out)
420420
mx.log(mx.colorize(f"[PGO] Gzipped profile at: {iprof_gz_path}", color="yellow"))
421421

422-
if shutil.which("artifact_uploader"):
422+
if script := os.environ.get("ARTIFACT_UPLOADER_SCRIPT"):
423423
run(
424424
[
425-
"artifact_uploader",
425+
sys.executable,
426+
script,
426427
iprof_gz_path,
427428
str(SUITE.vc.tip(SUITE.dir)).strip(),
428429
"graalpy",
@@ -431,7 +432,6 @@ def graalpy_native_pgo_build_and_test(args=None):
431432
"--artifact-repo-key",
432433
os.environ.get("ARTIFACT_REPO_KEY_LOCATION"),
433434
],
434-
env={"UPLOADER_PYTHON": sys.executable, **os.environ},
435435
)
436436

437437
if args is None:

0 commit comments

Comments
 (0)