mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
#444: Check pip version in setup.py
This commit is contained in:
parent
4f95b3365a
commit
470c0ef699
@ -1,3 +1,4 @@
|
||||
pip
|
||||
pytest
|
||||
mock
|
||||
pytest-mock
|
||||
|
6
setup.py
6
setup.py
@ -1,8 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
from setuptools import setup, find_packages
|
||||
import pip
|
||||
import sys
|
||||
import os
|
||||
|
||||
if int(pip.__version__.split('.')[0]) < 6:
|
||||
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
|
||||
' pip install -U pip')
|
||||
sys.exit(-1)
|
||||
|
||||
if os.environ.get('CONVERT_README'):
|
||||
import pypandoc
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user