Skip to content

Commit e319834

Browse files
committed
fix builds
1 parent 7bd3e4b commit e319834

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

openssl/build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python3 -u
22

33
import os
44
import sys
@@ -51,11 +51,9 @@ def get_configure_target():
5151

5252
def run_command(cmd, cwd=None):
5353
print(f"Running: {cmd}")
54-
result = subprocess.run(cmd, shell=True, cwd=cwd, capture_output=True, text=True)
54+
result = subprocess.run(cmd, shell=True, cwd=cwd)
5555
if result.returncode != 0:
56-
print(f"Error: {result.stderr}")
5756
sys.exit(1)
58-
return result.stdout
5957

6058
def clone_repo(working_dir: Path, repo, branch, output_name):
6159
source_dir = working_dir / output_name
@@ -107,6 +105,7 @@ def build_openssl(working_dir: Path, source_dir: Path, output_name: str):
107105
run_command("make install", cwd=source_dir)
108106

109107
print(f"✓ Build complete: {prefix}\n")
108+
return prefix
110109

111110

112111
def create_archive(openssl_prefix: Path, artifact_dir: Path, openssl_version: str):

0 commit comments

Comments
 (0)