From: Stefan Behnel Date: Thu, 11 Mar 2010 08:59:05 +0000 (+0100) Subject: py2.3 build fix X-Git-Tag: 0.13.beta0~319^2~2^2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5756f0eb7fbaa168c98c591ffc98e5d50205ea8;p=cython.git py2.3 build fix --- 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()