10000 fix non-detection of build failure · winpython/winpython@d0b7968 · GitHub
[go: up one dir, main page]

Skip to content

Commit d0b7968

Browse files
author
stonebig
committed
fix non-detection of build failure
1 parent b5a1c2f commit d0b7968

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

winpython/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,11 @@ def build_wheel(this_whl, python_exe=None, copy_to=None,
583583
p = subprocess.Popen(cmd, cwd=myroot, stdout=subprocess.PIPE,
584584
stderr=subprocess.PIPE)
585585
stdout, stderr = p.communicate()
586-
the_log = ("%s" % stdout)
587-
if 'not find any' in the_log:
586+
the_log = ("%s" % stdout + "\n %s" % stderr)
587+
588+
if ' not find ' in the_log or ' not found ' in the_log:
588589
print("Failed to Install: \n %s \n" % this_whl)
589-
print("msg: %s" % stdout)
590+
print("msg: %s" % the_log)
590591
raise RuntimeError
591592
p.stdout.close()
592593
p.stderr.close()

0 commit comments

Comments
 (0)
0