mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Flush to stdout so that print messages appear where you would expect relative
to output from the subprocesses.
This commit is contained in:
parent
c5f5692a37
commit
a37284fd42
2
setup.py
2
setup.py
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user