mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-06 20:49:55 +00:00
chore: show cmake output in real time during build_ext
otherwise cmake error messages may be suppressed, making debugging difficult
This commit is contained in:
parent
35ba63e259
commit
690d4d42f9
1 changed files with 3 additions and 5 deletions
6
setup.py
6
setup.py
|
@ -403,11 +403,9 @@ class CMakeBuild(BuildExtension):
|
||||||
|
|
||||||
if not build_temp.exists():
|
if not build_temp.exists():
|
||||||
build_temp.mkdir(parents=True)
|
build_temp.mkdir(parents=True)
|
||||||
result = subprocess.run(
|
subprocess.run(
|
||||||
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True , capture_output=True, text=True
|
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True
|
||||||
)
|
)
|
||||||
print("Standard output:", result.stdout)
|
|
||||||
print("Standard error:", result.stderr)
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["cmake", "--build", ".", "--verbose", *build_args], cwd=build_temp, check=True
|
["cmake", "--build", ".", "--verbose", *build_args], cwd=build_temp, check=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue