diff options
| author | Tom Christie | 2014-12-17 21:18:06 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-12-17 21:18:06 +0000 |
| commit | 39766bcc0ee5149a98ea11a79270609a5ec99d87 (patch) | |
| tree | 030d17012b0b91840f40535a991a28acfb6aa333 | |
| parent | c87e95c23942d2b9c38784a4ad3e9a6d043a4977 (diff) | |
| download | django-rest-framework-39766bcc0ee5149a98ea11a79270609a5ec99d87.tar.bz2 | |
Enforce wheel check before allowing 'setup.pu publish'
| -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:") |
