mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 04:32:37 +01:00
7
setup.py
7
setup.py
@@ -1,13 +1,16 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
import pip
|
import pkg_resources
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if int(pip.__version__.split('.')[0]) < 6:
|
try:
|
||||||
|
if int(pkg_resources.get_distribution("pip").version.split('.')[0]) < 6:
|
||||||
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
|
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
|
||||||
' pip install -U pip')
|
' pip install -U pip')
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
except pkg_resources.DistributionNotFound:
|
||||||
|
pass
|
||||||
|
|
||||||
if os.environ.get('CONVERT_README'):
|
if os.environ.get('CONVERT_README'):
|
||||||
import pypandoc
|
import pypandoc
|
||||||
|
Reference in New Issue
Block a user