mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-14 23:00:45 +01:00
commit
965c05bfdf
13
setup.py
13
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:
|
||||||
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
|
if int(pkg_resources.get_distribution("pip").version.split('.')[0]) < 6:
|
||||||
' pip install -U pip')
|
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
|
||||||
sys.exit(-1)
|
' pip install -U pip')
|
||||||
|
sys.exit(-1)
|
||||||
|
except pkg_resources.DistributionNotFound:
|
||||||
|
pass
|
||||||
|
|
||||||
if os.environ.get('CONVERT_README'):
|
if os.environ.get('CONVERT_README'):
|
||||||
import pypandoc
|
import pypandoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user