diff options
| author | Tom Christie | 2014-12-18 10:40:40 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-18 10:40:40 +0000 |
| commit | 725bde29c777038cae83a3e5de2b4b1919a35143 (patch) | |
| tree | 3f29f3609b7a09dc1e14be88871bf635209422e7 /setup.py | |
| parent | b8af83493fa8d8b404174e67c3e21e7c05e9fc25 (diff) | |
| download | django-rest-framework-725bde29c777038cae83a3e5de2b4b1919a35143.tar.bz2 | |
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:") |
