Skip to content
Snippets Groups Projects
Commit 2da4666b authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Don't set up Python doc packages every time

parent c5fc0433
Branches
Tags
No related merge requests found
...@@ -79,6 +79,11 @@ BUILD_WITH_CYTHON = os.environ.get('GRPC_PYTHON_BUILD_WITH_CYTHON', False) ...@@ -79,6 +79,11 @@ BUILD_WITH_CYTHON = os.environ.get('GRPC_PYTHON_BUILD_WITH_CYTHON', False)
ENABLE_CYTHON_TRACING = os.environ.get( ENABLE_CYTHON_TRACING = os.environ.get(
'GRPC_PYTHON_ENABLE_CYTHON_TRACING', False) 'GRPC_PYTHON_ENABLE_CYTHON_TRACING', False)
# Environment variable specifying whether or not there's interest in setting up
# documentation building.
ENABLE_DOCUMENTATION_BUILD = os.environ.get(
'GRPC_PYTHON_ENABLE_DOCUMENTATION_BUILD', False)
# There are some situations (like on Windows) where CC, CFLAGS, and LDFLAGS are # There are some situations (like on Windows) where CC, CFLAGS, and LDFLAGS are
# entirely ignored/dropped/forgotten by distutils and its Cygwin/MinGW support. # entirely ignored/dropped/forgotten by distutils and its Cygwin/MinGW support.
# We use these environment variables to thus get around that without locking # We use these environment variables to thus get around that without locking
...@@ -210,7 +215,8 @@ SETUP_REQUIRES = INSTALL_REQUIRES + ( ...@@ -210,7 +215,8 @@ SETUP_REQUIRES = INSTALL_REQUIRES + (
'sphinx>=1.3', 'sphinx>=1.3',
'sphinx_rtd_theme>=0.1.8', 'sphinx_rtd_theme>=0.1.8',
'six>=1.10', 'six>=1.10',
) ) if ENABLE_DOCUMENTATION_BUILD else ()
if BUILD_WITH_CYTHON: if BUILD_WITH_CYTHON:
sys.stderr.write( sys.stderr.write(
"You requested a Cython build via GRPC_PYTHON_BUILD_WITH_CYTHON, " "You requested a Cython build via GRPC_PYTHON_BUILD_WITH_CYTHON, "
......
...@@ -67,6 +67,7 @@ environment.update({ ...@@ -67,6 +67,7 @@ environment.update({
'LDFLAGS': '-L{}'.format(LIBRARY_PATH), 'LDFLAGS': '-L{}'.format(LIBRARY_PATH),
'LD_LIBRARY_PATH': LIBRARY_PATH, 'LD_LIBRARY_PATH': LIBRARY_PATH,
'GRPC_PYTHON_BUILD_WITH_CYTHON': '1', 'GRPC_PYTHON_BUILD_WITH_CYTHON': '1',
'GRPC_PYTHON_ENABLE_DOCUMENTATION_BUILD': '1',
}) })
subprocess_arguments_list = [ subprocess_arguments_list = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment