mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
fix missing-wheel command
because an empty distutils command must implement three no-op methods and one class attribute. Which makes perfect sense.
This commit is contained in:
parent
f1f56e7144
commit
197dc25b97
11
setupbase.py
11
setupbase.py
@ -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…
Reference in New Issue
Block a user