@@ -338,8 +338,8 @@ def patch_sourcelines(fname, in_line_start, out_line, endline='\n', silent_mode=
338338 if osp .isfile (fname ):
339339 with io .open (fname , 'r' ) as fh :
340340 contents = fh .readlines ()
341- content = "" .join (contents )
342- for l in range (len (contents )):
341+ content = "" .join (contents )
342+ for l in range (len (contents )):
343343 if contents [l ].startswith (in_line_start ):
344344 begining , middle = in_line_start , contents [l ][len (in_line_start ):]
345345 ending = ""
@@ -352,7 +352,7 @@ def patch_sourcelines(fname, in_line_start, out_line, endline='\n', silent_mode=
352352 if not silent_mode :
353353 print ("patching " , fname , " from\n " , contents [l ], "\n to\n " , new_line )
354354 contents [l ] = new_line
355- new_content = "" .join (contents )
355+ new_content = "" .join (contents )
356356 if not new_content == content :
357357 # if not silent_mode:
358358 # print("patching ", fname, "from", content, "to", new_content)
@@ -582,7 +582,12 @@ def build_wheel(this_whl, python_exe=None, copy_to=None,
582582 else :
583583 p = subprocess .Popen (cmd , cwd = myroot , stdout = subprocess .PIPE ,
584584 stderr = subprocess .PIPE )
585- p .communicate ()
585+ stdout , stderr = p .communicate ()
586+ the_log = ("%s" % stdout )
587+ if 'not find any' in the_log :
588+ print ("Failed to Install: \n %s \n " % this_whl )
589+ print ("msg: %s" % stdout )
590+ raise RuntimeError
586591 p .stdout .close ()
587592 p .stderr .close ()
588593 src_fname = this_whl
0 commit comments