@@ -10,11 +10,11 @@ def fetch_and_build_one(payload):
10
10
(project , no_build ) = payload
11
11
project_slug = project [1 ]
12
12
print (f"== Processing { project_slug } ==" )
13
- output = subprocess .run (["python " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/fetch_one.py" , project_slug ])
13
+ output = subprocess .run (["python3 " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/fetch_one.py" , project_slug ])
14
14
if output .returncode != 0 :
15
15
return
16
16
if not no_build :
17
- output = subprocess .run (["python " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/build_one.py" , project_slug ])
17
+ output = subprocess .run (["python3 " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/build_one.py" , project_slug ])
18
18
if output .returncode != 0 :
19
19
return
20
20
print (f"== Done fetching and building { project_slug } ==" )
@@ -52,15 +52,15 @@ def parallel_fetch_and_build(projects, no_build):
52
52
53
53
if not args .no_build :
54
54
print (f"====== Setting up JDK ======" )
55
- output = subprocess .run (["python " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_jdk.py" ])
55
+ output = subprocess .run (["python3 " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_jdk.py" ])
56
56
if output .returncode != 0 : print (f"Failed; aborting" ); exit (1 )
57
57
58
58
print (f"====== Setting up Maven ======" )
59
- output = subprocess .run (["python " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_mvn.py" ])
59
+ output = subprocess .run (["python3 " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_mvn.py" ])
60
60
if output .returncode != 0 : print (f"Failed; aborting" ); exit (1 )
61
61
62
62
print (f"====== Setting up Gradle ======" )
63
- output = subprocess .run (["python " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_gradle.py" ])
63
+ output = subprocess .run (["python3 " , f"{ CWE_BENCH_JAVA_ROOT_DIR } /scripts/setup_gradle.py" ])
64
64
if output .returncode != 0 : print (f"Failed; aborting" ); exit (1 )
65
65
66
66
print (f"====== Fetching and Building Repositories ======" )
0 commit comments