mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-04-20 06:18:59 +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:
8
setup.py
8
setup.py
@@ -403,11 +403,9 @@ class CMakeBuild(BuildExtension):
|
||||
|
||||
if not build_temp.exists():
|
||||
build_temp.mkdir(parents=True)
|
||||
result = subprocess.run(
|
||||
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True , capture_output=True, text=True
|
||||
subprocess.run(
|
||||
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True
|
||||
)
|
||||
print("Standard output:", result.stdout)
|
||||
print("Standard error:", result.stderr)
|
||||
subprocess.run(
|
||||
["cmake", "--build", ".", "--verbose", *build_args], cwd=build_temp, check=True
|
||||
)
|
||||
@@ -480,4 +478,4 @@ setup(
|
||||
version=VersionInfo().get_package_version(),
|
||||
cmdclass={"bdist_wheel":BuildWheelsCommand ,"build_ext": CMakeBuild},
|
||||
ext_modules=ext_modules
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user