aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTom Christie2014-12-18 10:40:40 +0000
committerTom Christie2014-12-18 10:40:40 +0000
commit725bde29c777038cae83a3e5de2b4b1919a35143 (patch)
tree3f29f3609b7a09dc1e14be88871bf635209422e7 /setup.py
parentb8af83493fa8d8b404174e67c3e21e7c05e9fc25 (diff)
downloaddjango-rest-framework-725bde29c777038cae83a3e5de2b4b1919a35143.tar.bz2
Check for wheel install before allowing setup.py publish.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 2c56cd75..50bac046 100755
--- a/setup.py
+++ b/setup.py
@@ -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:")