Commit a37284fd authored by Davis King's avatar Davis King

Flush to stdout so that print messages appear where you would expect relative

to output from the subprocesses.
parent c5f5692a
...@@ -161,8 +161,10 @@ class CMakeBuild(build_ext): ...@@ -161,8 +161,10 @@ class CMakeBuild(build_ext):
print("Building extension for Python {}".format(sys.version.split('\n',1)[0])) print("Building extension for Python {}".format(sys.version.split('\n',1)[0]))
print("Invoking CMake setup: '{}'".format(' '.join(cmake_setup))) print("Invoking CMake setup: '{}'".format(' '.join(cmake_setup)))
sys.stdout.flush()
subprocess.check_call(cmake_setup, cwd=build_folder) subprocess.check_call(cmake_setup, cwd=build_folder)
print("Invoking CMake build: '{}'".format(' '.join(cmake_build))) print("Invoking CMake build: '{}'".format(' '.join(cmake_build)))
sys.stdout.flush()
subprocess.check_call(cmake_build, cwd=build_folder) subprocess.check_call(cmake_build, cwd=build_folder)
def num_available_cpu_cores(ram_per_build_process_in_gb): def num_available_cpu_cores(ram_per_build_process_in_gb):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment