mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Fail hard during publish if pandoc isn't available.
This commit is contained in:
parent
72ecd32c6b
commit
f48ccad581
4
setup.py
4
setup.py
|
@ -56,6 +56,10 @@ version = get_version('rest_framework')
|
|||
|
||||
|
||||
if sys.argv[-1] == 'publish':
|
||||
try:
|
||||
import pypandoc
|
||||
except ImportError:
|
||||
print("pypandoc not installed.\nUse `pip install pypandoc`.\nExiting.")
|
||||
if os.system("pip freeze | grep wheel"):
|
||||
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
|
||||
sys.exit()
|
||||
|
|
Loading…
Reference in New Issue
Block a user