comparison setup.py @ 23392:d66547df8207

plan9: setup check for current python build
author Jeff Sickel <jas@corpus-callosum.com>
date Tue, 25 Nov 2014 02:27:31 -0600
parents c4ce077588d0
children 9641643fac71
comparison
equal deleted inserted replaced
23391:d8cdd46f426d 23392:d66547df8207
139 from distutils.core import Distribution 139 from distutils.core import Distribution
140 except ImportError: 140 except ImportError:
141 py2exeloaded = False 141 py2exeloaded = False
142 142
143 def runcmd(cmd, env): 143 def runcmd(cmd, env):
144 if sys.platform == 'plan9': 144 if (sys.platform == 'plan9'
145 and (sys.version_info[0] == 2 and sys.version_info[1] < 7)):
145 # subprocess kludge to work around issues in half-baked Python 146 # subprocess kludge to work around issues in half-baked Python
146 # ports, notably bichued/python: 147 # ports, notably bichued/python:
147 _, out, err = os.popen3(cmd) 148 _, out, err = os.popen3(cmd)
148 return str(out), str(err) 149 return str(out), str(err)
149 else: 150 else: