aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTom Christie2014-12-18 10:55:58 +0000
committerTom Christie2014-12-18 10:55:58 +0000
commitd8803a35bd2dc8cbf4c892f68b48c72f24e83916 (patch)
tree77329e0f0d0d25936e86caa1acc03e2c41090c40 /setup.py
parent22ffeafc3e67295d93b5f5d6dcb98917237d29eb (diff)
parent725bde29c777038cae83a3e5de2b4b1919a35143 (diff)
downloaddjango-rest-framework-d8803a35bd2dc8cbf4c892f68b48c72f24e83916.tar.bz2
Merge pull request #2312 from tomchristie/check-for-wheel-before-pypi-publish
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:")