diff --git a/_Pre_Builds/_Build_Scripts/auto_build_all.py b/_Pre_Builds/_Build_Scripts/auto_build_all.py index 854bdab..806e6b9 100644 --- a/_Pre_Builds/_Build_Scripts/auto_build_all.py +++ b/_Pre_Builds/_Build_Scripts/auto_build_all.py @@ -62,10 +62,14 @@ def build_python_wheel(dependency_dir, output_dir): # Build wheel and move the wheel file we just built to the output directory print(f"Building {dependency_dir}") - result = subprocess.run([PYTHON_PATH, "setup.py", "bdist_wheel", "--dist-dir", output_dir], cwd=dependency_dir, shell=True, text=True, capture_output=True) + result = subprocess.run([PYTHON_PATH, "setup.py", "bdist_wheel", "--dist-dir", output_dir], cwd=dependency_dir, text=True, capture_output=True) #print(f"returncode: {result.returncode} \n\n Output: {result.stdout} \n\n Error: {result.stderr}") build_failed = result.returncode != 0 + if build_failed: + print(f"[Wheel BUILD LOG]\n{result.stdout}") + print(f"[Wheel BUILD ERROR LOG]\n{result.stderr}") + print(f" Build {dependency_dir} {'Failed' if build_failed else 'Succeed'}") return build_failed diff --git a/install.py b/install.py index 4b59cb1..e5422ba 100644 --- a/install.py +++ b/install.py @@ -31,7 +31,7 @@ def try_auto_build_all(builds_dir): cstr(f"Try building all required packages...").msg.print() result = subprocess.run( [PYTHON_PATH, "auto_build_all.py", "--output_root_dir", builds_dir], - cwd=BUILD_SCRIPT_ROOT_ABS_PATH, shell=True, text=True, capture_output=True + cwd=BUILD_SCRIPT_ROOT_ABS_PATH, text=True, capture_output=True ) build_succeed = result.returncode == 0