Skip to content

Commit

Permalink
Merge pull request #207 from MrForExample/dev
Browse files Browse the repository at this point in the history
Update Auto Install/Build Scripts
  • Loading branch information
MrForExample authored Jul 11, 2024
2 parents 4f760e8 + dacaf00 commit e04eff9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion _Pre_Builds/_Build_Scripts/auto_build_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e04eff9

Please sign in to comment.