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

login
register
mail settings
Submitter Jeff Sickel
Date Nov. 25, 2014, 7:59 a.m.
Message ID <54cd545e2ec215cf1271.1416905950@cagoan1.buf.io>
Download mbox | patch
Permalink /patch/6850/
State Accepted
Headers show

Comments

Jeff Sickel - Nov. 25, 2014, 7:59 a.m.
# HG changeset patch
# User Jeff Sickel <jas@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

Patch

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)