File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -295,17 +295,17 @@ def libpythonvm_build_args():
295
295
except Exception :
296
296
branch = "master"
297
297
298
- if shutil . which ( "artifact_download " ):
298
+ if script := os . environ . get ( "ARTIFACT_DOWNLOAD_SCRIPT " ):
299
299
# This is always available in the GraalPy CI
300
300
profile = "cached_profile.iprof.gz"
301
301
run (
302
302
[
303
- "artifact_download" ,
303
+ sys .executable ,
304
+ script ,
304
305
f"graalpy/{ commit } " ,
305
306
profile ,
306
307
],
307
308
nonZeroIsFatal = False ,
308
- env = {"UPLOADER_PYTHON" : sys .executable , ** os .environ },
309
309
)
310
310
else :
311
311
# Locally, we try to get a reasonable profile
@@ -419,10 +419,11 @@ def graalpy_native_pgo_build_and_test(args=None):
419
419
shutil .copyfileobj (f_in , f_out )
420
420
mx .log (mx .colorize (f"[PGO] Gzipped profile at: { iprof_gz_path } " , color = "yellow" ))
421
421
422
- if shutil . which ( "artifact_uploader " ):
422
+ if script := os . environ . get ( "ARTIFACT_UPLOADER_SCRIPT " ):
423
423
run (
424
424
[
425
- "artifact_uploader" ,
425
+ sys .executable ,
426
+ script ,
426
427
iprof_gz_path ,
427
428
str (SUITE .vc .tip (SUITE .dir )).strip (),
428
429
"graalpy" ,
@@ -431,7 +432,6 @@ def graalpy_native_pgo_build_and_test(args=None):
431
432
"--artifact-repo-key" ,
432
433
os .environ .get ("ARTIFACT_REPO_KEY_LOCATION" ),
433
434
],
434
- env = {"UPLOADER_PYTHON" : sys .executable , ** os .environ },
435
435
)
436
436
437
437
if args is None :
You can’t perform that action at this time.
0 commit comments