Centos 6's python does not have subprocess.check_output
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Jan 2019 23:53:43 +0000 (23:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 29 Jan 2019 23:53:43 +0000 (23:53 +0000)
src/wx/wscript

index 3be3a6763695b0e0ab620224c607479408dfecd3..24c2b8b5eb923985c825a3f67fe1f2a4d995367d 100644 (file)
@@ -171,7 +171,7 @@ def configure(conf):
         conf.env.STLIBPATH_WXWIDGETS = stlib_paths
 
     conf.in_msg = 1
-    wx_version = subprocess.check_output([wx_config, '--version']).decode('UTF-8')
+    wx_version = subprocess.Popen([wx_config, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode('UTF-8')
     conf.in_msg = 0
     if not wx_version.startswith('3.0.'):
         conf.fatal('wxwidgets version 3.0.x is required; %s found' % wx_version)