Skip to content

Commit

Permalink
setup.py, dont check for pip version.
Browse files Browse the repository at this point in the history
  • Loading branch information
schettino72 committed Sep 29, 2024
1 parent 20d8a17 commit 0166d22
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
from __future__ import print_function
from setuptools import setup
import sys

# Assume pip is new enough
pip_message = None
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__)

except Exception:
pip_message = 'This may be due to an out of date pip. Make sure you have pip >= 9.0.1.'


if pip_message:
# Some error from pip version check
error = """
Python {py} detected.
Exiting setup:
{pip}
""".format(py=sys.version_info, pip=pip_message )

print(error, file=sys.stderr)
sys.exit(1)


def readme():
with open('README.rst') as fp:
Expand Down

0 comments on commit 0166d22

Please sign in to comment.