Assign noop to build_package_protos for backward compatibility

pull/17490/head
Lidi Zheng 6 years ago
parent 40b8ca97a1
commit 8621bd47ad
  1. 2
      src/python/grpcio_status/setup.py

@ -69,11 +69,13 @@ try:
COMMAND_CLASS = { COMMAND_CLASS = {
# Run preprocess from the repository *before* doing any packaging! # Run preprocess from the repository *before* doing any packaging!
'preprocess': _status_commands.Preprocess, 'preprocess': _status_commands.Preprocess,
'build_package_protos': _NoOpCommand,
} }
except ImportError: except ImportError:
COMMAND_CLASS = { COMMAND_CLASS = {
# wire up commands to no-op not to break the external dependencies # wire up commands to no-op not to break the external dependencies
'preprocess': _NoOpCommand, 'preprocess': _NoOpCommand,
'build_package_protos': _NoOpCommand,
} }
setuptools.setup( setuptools.setup(

Loading…
Cancel
Save