Skip to content

Commit

Permalink
closes #1864, mock grpcio when generating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed Jun 16, 2016
1 parent 488b600 commit 9925c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
ON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'
LOCAL_READ_THE_DOCS = os.environ.get('LOCAL_RTD', None) == 'True'


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'gax-google-pubsub-v1',
]

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

setup(
Expand Down

0 comments on commit 9925c8c

Please sign in to comment.