Skip to content

Commit

Permalink
Merge pull request #2312 from tomchristie/check-for-wheel-before-pypi…
Browse files Browse the repository at this point in the history
…-publish

Check for wheel install before allowing setup.py publish.
  • Loading branch information
tomchristie committed Dec 18, 2014
2 parents 22ffeaf + 725bde2 commit d8803a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def get_package_data(package):


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:")
Expand Down

0 comments on commit d8803a3

Please sign in to comment.