in oss-torch-connector/setup.py [0:0]
def run_command(self, command, cwd):
try:
subprocess.run(command, capture_output=True, text=True, check=True, cwd=cwd)
except subprocess.CalledProcessError as e:
print(f"Command '{' '.join(command)}' failed with exit code {e.returncode}")
print(f"Stdout: {e.stdout}")
print(f"Stderr: {e.stderr}")
raise RuntimeError("Subprocess execution failed") from e