Skip to content

Commit

Permalink
Revert "Build with System OpenSSL on Mac OS arm64 (#31096)" (#31739)
Browse files Browse the repository at this point in the history
This reverts commit b3d9833.
  • Loading branch information
gnossen committed Nov 22, 2022
1 parent fb01bb1 commit 27428be
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions setup.py
Expand Up @@ -133,22 +133,11 @@ def _env_bool_value(env_name, default):
# present, then it will still attempt to use Cython.
BUILD_WITH_CYTHON = _env_bool_value('GRPC_PYTHON_BUILD_WITH_CYTHON', 'False')

# Currently, boringssl does not support macOS arm64, so we try to use the system
# installation of openssl to build gRPC locally by default.
if "darwin" in sys.platform and "arm64" == platform.machine().lower():
sys.stderr.write(
"Boringssl currently does not support macOS arm64, so we'll try to use the system installation "
"of 'openssl' to build by default, make sure you have 'openssl' installed in this case\n"
)
BUILD_WITH_SYSTEM_OPENSSL_DEFAULT_ENV = "True"
else:
BUILD_WITH_SYSTEM_OPENSSL_DEFAULT_ENV = "False"

# Export this variable to use the system installation of openssl. You need to
# have the header files installed (in /usr/include/openssl) and during
# runtime, the shared library must be installed
BUILD_WITH_SYSTEM_OPENSSL = _env_bool_value(
'GRPC_PYTHON_BUILD_SYSTEM_OPENSSL', BUILD_WITH_SYSTEM_OPENSSL_DEFAULT_ENV)
BUILD_WITH_SYSTEM_OPENSSL = _env_bool_value('GRPC_PYTHON_BUILD_SYSTEM_OPENSSL',
'False')

# Export this variable to use the system installation of zlib. You need to
# have the header files installed (in /usr/include/) and during
Expand Down

0 comments on commit 27428be

Please sign in to comment.