|
|
@ -52,11 +52,12 @@ PYTHON_STEM = os.path.join('src', 'python', 'grpcio') |
|
|
|
CORE_INCLUDE = ('include', '.',) |
|
|
|
CORE_INCLUDE = ('include', '.',) |
|
|
|
BORINGSSL_INCLUDE = (os.path.join('third_party', 'boringssl', 'include'),) |
|
|
|
BORINGSSL_INCLUDE = (os.path.join('third_party', 'boringssl', 'include'),) |
|
|
|
ZLIB_INCLUDE = (os.path.join('third_party', 'zlib'),) |
|
|
|
ZLIB_INCLUDE = (os.path.join('third_party', 'zlib'),) |
|
|
|
CARES_INCLUDE = (os.path.join('third_party', 'c-ares'), os.path.join('src', 'c-ares'),) |
|
|
|
CARES_INCLUDE = ( |
|
|
|
if "linux" in sys.platform: |
|
|
|
os.path.join('third_party', 'c-ares'), os.path.join('src', 'c-ares'),) |
|
|
|
CARES_INCLUDE += (os.path.join('src', 'c-ares', 'config_linux'),) |
|
|
|
if 'linux' in sys.platform: |
|
|
|
if "darwin" in sys.platform: |
|
|
|
CARES_INCLUDE += (os.path.join('src', 'c-ares', 'config_linux'),) |
|
|
|
CARES_INCLUDE += (os.path.join('src', 'c-ares', 'config_darwin'),) |
|
|
|
if 'darwin' in sys.platform: |
|
|
|
|
|
|
|
CARES_INCLUDE += (os.path.join('src', 'c-ares', 'config_darwin'),) |
|
|
|
|
|
|
|
|
|
|
|
# Ensure we're in the proper directory whether or not we're being used by pip. |
|
|
|
# Ensure we're in the proper directory whether or not we're being used by pip. |
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__))) |
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__))) |
|
|
@ -134,7 +135,8 @@ CYTHON_HELPER_C_FILES = () |
|
|
|
CORE_C_FILES = tuple(grpc_core_dependencies.CORE_SOURCE_FILES) |
|
|
|
CORE_C_FILES = tuple(grpc_core_dependencies.CORE_SOURCE_FILES) |
|
|
|
|
|
|
|
|
|
|
|
EXTENSION_INCLUDE_DIRECTORIES = ( |
|
|
|
EXTENSION_INCLUDE_DIRECTORIES = ( |
|
|
|
(PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE + CARES_INCLUDE) |
|
|
|
(PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE + |
|
|
|
|
|
|
|
CARES_INCLUDE) |
|
|
|
|
|
|
|
|
|
|
|
EXTENSION_LIBRARIES = () |
|
|
|
EXTENSION_LIBRARIES = () |
|
|
|
if "linux" in sys.platform: |
|
|
|
if "linux" in sys.platform: |
|
|
|