diff options
| author | Tom Christie | 2014-12-18 10:55:58 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-18 10:55:58 +0000 | 
| commit | d8803a35bd2dc8cbf4c892f68b48c72f24e83916 (patch) | |
| tree | 77329e0f0d0d25936e86caa1acc03e2c41090c40 /setup.py | |
| parent | 22ffeafc3e67295d93b5f5d6dcb98917237d29eb (diff) | |
| parent | 725bde29c777038cae83a3e5de2b4b1919a35143 (diff) | |
| download | django-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-x | setup.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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:") | 
