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

to output from the subprocesses.
This commit is contained in:
Davis King 2018-05-06 15:19:38 -04:00
parent c5f5692a37
commit a37284fd42
1 changed files with 2 additions and 0 deletions

View File

@ -161,8 +161,10 @@ class CMakeBuild(build_ext):
print("Building extension for Python {}".format(sys.version.split('\n',1)[0]))
print("Invoking CMake setup: '{}'".format(' '.join(cmake_setup)))
sys.stdout.flush()
subprocess.check_call(cmake_setup, cwd=build_folder)
print("Invoking CMake build: '{}'".format(' '.join(cmake_build)))
sys.stdout.flush()
subprocess.check_call(cmake_build, cwd=build_folder)
def num_available_cpu_cores(ram_per_build_process_in_gb):