mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 04:53:57 +01:00
build.py: Now flushing stdout in make every now and then to avoid pipe filling up
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c182b4f5ef
commit
8a73ad22ab
1 changed files with 3 additions and 3 deletions
|
|
@ -100,10 +100,10 @@ def run_make(module, target):
|
||||||
print(',---------- running ' + make_cmd + ' in ' + path + ' -------------------------- >')
|
print(',---------- running ' + make_cmd + ' in ' + path + ' -------------------------- >')
|
||||||
os.chdir(path)
|
os.chdir(path)
|
||||||
p = subprocess.Popen(make_cmd, shell=True, stdout=subprocess.PIPE)
|
p = subprocess.Popen(make_cmd, shell=True, stdout=subprocess.PIPE)
|
||||||
p.wait()
|
for line in iter(p.stdout.readline, ''):
|
||||||
for line in iter(p.stdout.readline,''):
|
|
||||||
sys.stdout.write('| ' + line) # avoid extra newlines from print()
|
sys.stdout.write('| ' + line) # avoid extra newlines from print()
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
p.wait()
|
||||||
print('`---------- running ' + make_cmd + ' in ' + path + ' -------------------------- <')
|
print('`---------- running ' + make_cmd + ' in ' + path + ' -------------------------- <')
|
||||||
if p.returncode:
|
if p.returncode:
|
||||||
print(make_cmd + ' failed')
|
print(make_cmd + ' failed')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue