Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
setup: Detect if wheel and twine installed
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Oct 7, 2018
1 parent 3607df0 commit 1de640c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -14,10 +14,10 @@ def get_version(package):
version = get_version('mezzanine_api')

if sys.argv[-1] == 'publish':
if os.system('pip freeze | grep wheel'):
if os.system('pip freeze --all | grep wheel'):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
if os.system('pip freeze | grep twine'):
if os.system('pip freeze --all | grep twine'):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system('python setup.py sdist bdist_wheel')
Expand Down

0 comments on commit 1de640c

Please sign in to comment.