Skip to content

Commit 9925c8c

Browse files
committed
closes #1864, mock grpcio when generating docs.
1 parent 488b600 commit 9925c8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
ON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'
2424
LOCAL_READ_THE_DOCS = os.environ.get('LOCAL_RTD', None) == 'True'
2525

26+
2627
# If extensions (or modules to document with autodoc) are in another directory,
2728
# add these directories to sys.path here. If the directory is relative to the
2829
# documentation root, use os.path.abspath to make it absolute, like shown here.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
'gax-google-pubsub-v1',
2626
]
2727

28-
if sys.version_info[:2] == (2, 7):
28+
if sys.version_info[:2] == (2, 7) and 'READTHEDOCS' not in os.environ:
2929
REQUIREMENTS.extend(GRPC_EXTRAS)
3030

3131
setup(

0 commit comments

Comments
 (0)