[flashproxy/master] Make version number extraction compatible with Python 2.6.

2 Feb
2014
2 Feb
'14
1:55 a.m.
commit aa82bea89021bf75417920f86d972fc21ff09408 Author: David Fifield <david@bamsoftware.com> Date: Sat Feb 1 17:54:25 2014 -0800 Make version number extraction compatible with Python 2.6. --- setup-common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup-common.py b/setup-common.py index bcfdb71..ffe7c33 100755 --- a/setup-common.py +++ b/setup-common.py @@ -25,7 +25,10 @@ import sys from setuptools import setup, find_packages -version = subprocess.check_output(["sh", "version.sh"]).strip() +p = subprocess.Popen(["sh", "version.sh"], stdout=subprocess.PIPE) +output, _ = p.communicate() +assert p.poll() == 0 +version = output.strip() setup( name = "flashproxy-common",
4169
Age (days ago)
4169
Last active (days ago)
0 comments
1 participants
participants (1)
-
dcf@torproject.org