mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Check for wheel install before allowing setup.py publish.
This commit is contained in:
parent
b8af83493f
commit
725bde29c7
3
setup.py
3
setup.py
|
@ -59,6 +59,9 @@ version = get_version('rest_framework')
|
||||||
|
|
||||||
|
|
||||||
if sys.argv[-1] == 'publish':
|
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 sdist upload")
|
||||||
os.system("python setup.py bdist_wheel upload")
|
os.system("python setup.py bdist_wheel upload")
|
||||||
print("You probably want to also tag the version now:")
|
print("You probably want to also tag the version now:")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user