Commit 2b9613eb authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by ntome

windows-install: Drop support for very old Python

parent ad37c416
......@@ -38,17 +38,6 @@ def _python_cmd(*args):
return == 0
def _check_call_py24(cmd, *args, **kwargs):
res =, *args, **kwargs)
class CalledProcessError(Exception):
if not res == 0:
msg = "Command '%s' return non-zero exit status %d" % (cmd, res)
raise CalledProcessError(msg)
vars(subprocess).setdefault('check_call', _check_call_py24)
def _install(tarball, install_args=()):
# extracting the tarball
tmpdir = tempfile.mkdtemp()
......@@ -316,13 +305,7 @@ def _extractall(self, path=".", members=None):
self.extract(tarinfo, path)
# Reverse sort directories.
if sys.version_info < (2, 4):
def sorter(dir1, dir2):
return cmp(,
directories.sort(key=operator.attrgetter('name'), reverse=True)
directories.sort(key=operator.attrgetter('name'), reverse=True)
# Set correct owner, mtime and filemode on directories.
for tarinfo in directories:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment