From patchwork Tue Nov 25 07:59:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,2] plan9: setup check for current python build From: Jeff Sickel X-Patchwork-Id: 6850 Message-Id: <54cd545e2ec215cf1271.1416905950@cagoan1.buf.io> To: mercurial-devel@selenic.com Cc: jas@corpus-callosum.com, David.Eckhardt@cs.cmu.edu Date: Tue, 25 Nov 2014 02:59:10 -0500 # HG changeset patch # User Jeff Sickel # Date 1416904051 21600 # Tue Nov 25 02:27:31 2014 -0600 # Branch stable # Node ID 54cd545e2ec215cf1271f063cd6dea6835e892ef # Parent 643c58303fb0ec020907af28b9e486be299ba043 plan9: setup check for current python build diff -r 643c58303fb0 -r 54cd545e2ec2 setup.py --- a/setup.py Mon Nov 10 10:44:42 2014 -0800 +++ b/setup.py Tue Nov 25 02:27:31 2014 -0600 @@ -141,7 +141,8 @@ py2exeloaded = False def runcmd(cmd, env): - if sys.platform == 'plan9': + if sys.platform == 'plan9' \ + and (sys.version_info[0] == 2 and sys.version_info[1] < 7): # subprocess kludge to work around issues in half-baked Python # ports, notably bichued/python: _, out, err = os.popen3(cmd)