fix missing-wheel command

because an empty distutils command must implement three no-op methods and one class attribute.

Which makes perfect sense.
MinRK 12 years ago
parent f1f56e7144
commit 197dc25b97

@ -570,8 +570,19 @@ def get_bdist_wheel():
Constructs py2-none-any tag, instead of py2.7-none-any
"""
class RequiresWheel(Command):
description = "Dummy command for missing bdist_wheel"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print("bdist_wheel requires the wheel package")
sys.exit(1)
if 'setuptools' not in sys.modules:
return RequiresWheel
else:

Loading…
Cancel
Save