Commit 39766bcc by Tom Christie

Enforce wheel check before allowing 'setup.pu publish'

parent c87e95c2
......@@ -59,6 +59,9 @@ version = get_version('rest_framework')
if sys.argv[-1] == 'publish':
if os.system("pip freeze | grep wheel"):
print "wheel not installed.\nUse `pip install wheel`.\nExiting."
sys.exit()
os.system("python setup.py sdist upload")
os.system("python setup.py bdist_wheel upload")
print("You probably want to also tag the version now:")
......
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