@@ -384,15 +384,15 @@ def build_python(env, dirs, logfp):
384384 [
385385 "sed" ,
386386 "-i" ,
387- 's/^expected_libexpat_tag.*$/expected_libexpat_tag="R_2_7_3"' ,
387+ 's/^expected_libexpat_tag.*$/expected_libexpat_tag="R_2_7_3"/ ' ,
388388 str (bash_refresh ),
389389 ]
390390 )
391391 runcmd (
392392 [
393393 "sed" ,
394394 "-i" ,
395- 's/^expected_libexpat_ver.*$/expected_libexpat_version="2.7.3"' ,
395+ 's/^expected_libexpat_ver.*$/expected_libexpat_version="2.7.3"/ ' ,
396396 str (bash_refresh ),
397397 ]
398398 )
@@ -401,19 +401,19 @@ def build_python(env, dirs, logfp):
401401 [
402402 "sed" ,
403403 "-i" ,
404- f's/^expected_libexpat_sha.*$/expected_libexpat_sha256="{ expat_hash } "' ,
404+ f's/^expected_libexpat_sha.*$/expected_libexpat_sha256="{ expat_hash } "/ ' ,
405405 str (bash_refresh ),
406406 ]
407407 )
408- run_cmd ([ bash_refresh ])
408+ runcmd ([ str ( bash_refresh ) ])
409409
410410 print ("#" * 80 )
411411 expat_root = pathlib .Path (dirs .source ) / "Modules" / "expat"
412- run_cmd (["cat" , str (expat_root / "expat.h" )])
413- run_cmd (["cat" , str (expat_root / "internal.h" )])
414- run_cmd (["cat" , str (expat_root / "refresh.sh" )])
415- run_cmd (["cat" , str (expat_root / "xmlparse.c" )])
416- run_cmd (["cat" , str (expat_root / "xmlrole.h" )])
412+ runcmd (["cat" , str (expat_root / "expat.h" )], stderr = logfp , stdout = logfp )
413+ runcmd (["cat" , str (expat_root / "internal.h" )], stderr = logfp , stdout = logfp )
414+ runcmd (["cat" , str (expat_root / "refresh.sh" )], stderr = logfp , stdout = logfp )
415+ runcmd (["cat" , str (expat_root / "xmlparse.c" )], stderr = logfp , stdout = logfp )
416+ runcmd (["cat" , str (expat_root / "xmlrole.h" )], stderr = logfp , stdout = logfp )
417417 print ("#" * 80 )
418418
419419 if pathlib .Path ("setup.py" ).exists ():
0 commit comments