1
0
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:
nvbn 2016-02-12 20:11:08 +03:00
parent 4f95b3365a
commit 470c0ef699
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
pip
pytest
mock
pytest-mock

View File

@ -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