From: Zooko O'Whielacronx Date: Fri, 29 Aug 2008 00:00:45 +0000 (-0700) Subject: setup: simplify parsing of python version number X-Git-Url: https://git.rkrishnan.org/specifications/banana.xhtml?a=commitdiff_plain;h=037c9157dc7bbc7fb300bde743314a10cb0080b2;p=tahoe-lafs%2Ftahoe-lafs.git setup: simplify parsing of python version number --- diff --git a/src/allmydata/__init__.py b/src/allmydata/__init__.py index 4c8c5712..85e3dd15 100644 --- a/src/allmydata/__init__.py +++ b/src/allmydata/__init__.py @@ -25,10 +25,10 @@ _auto_deps.require_auto_deps() def get_package_versions(): import OpenSSL, allmydata, foolscap, nevow, pycryptopp, simplejson, twisted, zfec, sys - from distutils.version import LooseVersion try: - pyver = LooseVersion('.'.join([str(c) for c in sys.version_info])) + pyver = '.'.join([str(c) for c in sys.version_info]) except: + # This will probably never happen, but if it does: pyver = sys.version setuptools_version = "unavailable"