@@ -98,8 +98,9 @@ def run(self):
9898 [sys .executable , cffi_path ],
9999 cwd = os .path .dirname (cffi_path ),
100100 check = True ,
101- capture_output = True ,
102- text = True ,
101+ stdout = subprocess .PIPE ,
102+ stderr = subprocess .PIPE ,
103+ universal_newlines = True ,
103104 )
104105 print ("Output:" )
105106 print (result .stdout )
@@ -197,7 +198,10 @@ def run(self): # noqa: C901
197198 # Check for CMake and compiler
198199 try :
199200 result = subprocess .run (
200- ["cmake" , "--version" ], capture_output = True , text = True
201+ ["cmake" , "--version" ],
202+ stdout = subprocess .PIPE ,
203+ stderr = subprocess .PIPE ,
204+ universal_newlines = True ,
201205 )
202206 print (f"Found CMake: { result .stdout .split ()[2 ]} " )
203207 except Exception :
@@ -542,8 +546,9 @@ def check_cffi_prerequisites():
542546 [sys .executable , cffi_path ],
543547 cwd = os .path .dirname (cffi_path ),
544548 check = True ,
545- capture_output = True ,
546- text = True ,
549+ stdout = subprocess .PIPE ,
550+ stderr = subprocess .PIPE ,
551+ universal_newlines = True ,
547552 )
548553 print ("Direct CFFI build result:" )
549554 print (result .stdout )
0 commit comments