Commit f48ccad5 by Xavier Ordoquy

Fail hard during publish if pandoc isn't available.

parent 72ecd32c
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment