mirror of
https://github.com/nvbn/thefuck.git
synced 2024-10-05 18:31:10 +01:00
#444: Check pip version in setup.py
This commit is contained in:
parent
4f95b3365a
commit
470c0ef699
@ -1,3 +1,4 @@
|
|||||||
|
pip
|
||||||
pytest
|
pytest
|
||||||
mock
|
mock
|
||||||
pytest-mock
|
pytest-mock
|
||||||
|
6
setup.py
6
setup.py
@ -1,8 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
import pip
|
||||||
import sys
|
import sys
|
||||||
import os
|
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'):
|
if os.environ.get('CONVERT_README'):
|
||||||
import pypandoc
|
import pypandoc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user