From b5756f0eb7fbaa168c98c591ffc98e5d50205ea8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Mar 2010 09:59:05 +0100 Subject: [PATCH] py2.3 build fix --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9a9e02f3..97412e0b 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ from distutils.sysconfig import get_python_lib import os, os.path import sys -if 'sdist' in sys.argv and sys.platform != "win32": +if 'sdist' in sys.argv and sys.platform != "win32" and sys.version_info >= (2,4): # Record the current revision in .hgrev - import subprocess # os.popen is cleaner but depricated + import subprocess # os.popen is cleaner but deprecated changset = subprocess.Popen("hg log --rev tip | grep changeset", shell=True, stdout=subprocess.PIPE).stdout.read() -- 2.26.2