Skip to content

Commit d8803a3

Browse files
committed
Merge pull request #2312 from tomchristie/check-for-wheel-before-pypi-publish
Check for wheel install before allowing setup.py publish.
2 parents 22ffeaf + 725bde2 commit d8803a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def get_package_data(package):
5959

6060

6161
if sys.argv[-1] == 'publish':
62+
if os.system("pip freeze | grep wheel"):
63+
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
64+
sys.exit()
6265
os.system("python setup.py sdist upload")
6366
os.system("python setup.py bdist_wheel upload")
6467
print("You probably want to also tag the version now:")

0 commit comments

Comments
 (0)