[PATCH 1 of 2] plan9: setup check for current python build

Jeff Sickel jas at buf.io
Tue Nov 25 07:59:10 UTC 2014


# HG changeset patch
# User Jeff Sickel <jas at corpus-callosum.com>
# 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)


More information about the Mercurial-devel mailing list