Skip to content

Commit e04eff9

Browse files
authored
Merge pull request #207 from MrForExample/dev
Update Auto Install/Build Scripts
2 parents 4f760e8 + dacaf00 commit e04eff9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_Pre_Builds/_Build_Scripts/auto_build_all.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ def build_python_wheel(dependency_dir, output_dir):
6262
# Build wheel and move the wheel file we just built to the output directory
6363
print(f"Building {dependency_dir}")
6464

65-
result = subprocess.run([PYTHON_PATH, "setup.py", "bdist_wheel", "--dist-dir", output_dir], cwd=dependency_dir, shell=True, text=True, capture_output=True)
65+
result = subprocess.run([PYTHON_PATH, "setup.py", "bdist_wheel", "--dist-dir", output_dir], cwd=dependency_dir, text=True, capture_output=True)
6666
#print(f"returncode: {result.returncode} \n\n Output: {result.stdout} \n\n Error: {result.stderr}")
6767
build_failed = result.returncode != 0
6868

69+
if build_failed:
70+
print(f"[Wheel BUILD LOG]\n{result.stdout}")
71+
print(f"[Wheel BUILD ERROR LOG]\n{result.stderr}")
72+
6973
print(f" Build {dependency_dir} {'Failed' if build_failed else 'Succeed'}")
7074
return build_failed
7175

install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def try_auto_build_all(builds_dir):
3131
cstr(f"Try building all required packages...").msg.print()
3232
result = subprocess.run(
3333
[PYTHON_PATH, "auto_build_all.py", "--output_root_dir", builds_dir],
34-
cwd=BUILD_SCRIPT_ROOT_ABS_PATH, shell=True, text=True, capture_output=True
34+
cwd=BUILD_SCRIPT_ROOT_ABS_PATH, text=True, capture_output=True
3535
)
3636
build_succeed = result.returncode == 0
3737

0 commit comments

Comments
 (0)