From 8cb5e9afbbe511fee9600330e783db4cbe72d739 Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Mon, 31 Aug 2020 15:28:47 +0200 Subject: [PATCH] Remove pip import and version check from setup.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes to how setuptools 50 works means that installing doit crashes with a cryptic KeyError (most likely caused by setuptools and pip’s monkeypatching of distutils). This check is not really necessary (most people have a newer pip these days). --- setup.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/setup.py b/setup.py index 9c7d774c..41fb12d9 100755 --- a/setup.py +++ b/setup.py @@ -6,23 +6,6 @@ from setuptools import setup - -########### last version to support python2 is 0.29 #### -try: - import pip - pip_version = tuple([int(x) for x in pip.__version__.split('.')[:3]]) - if pip_version < (9, 0, 1) : - pip_message = 'Your pip version is out of date, please install pip >= 9.0.1. '\ - 'pip {} detected.'.format(pip.__version__) - print(pip_message, file=sys.stderr) - sys.exit(1) -except Exception: - # what if someone does not have pip installed - pass - -######################################################## - - long_description = """ `doit` is a task management & automation tool