diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index be0f8f342..df4d04d41 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -153,6 +153,7 @@ jobs: runs-on: ${{ needs.get-runner-os.outputs.runner-os }} env: BUILD_IDENTIFIER: "${{ matrix.python-tag }}-${{ inputs.platform-tag }}" + MACOS_OPENSSL_VERSION: 3 steps: - name: Create status check message run: echo STATUS_CHECK_MESSAGE="cibuildwheel (${{ env.BUILD_IDENTIFIER }})" >> $GITHUB_ENV @@ -241,7 +242,7 @@ jobs: uses: pypa/cibuildwheel@v2.20.0 env: CIBW_ENVIRONMENT_PASS_LINUX: ${{ inputs.unoptimized && 'UNOPTIMIZED' || '' }} - CIBW_ENVIRONMENT_MACOS: SSL_LIB_PATH="$(brew --prefix openssl@1.1)/lib/" CPATH="$(brew --prefix openssl@1.1)/include/" STATIC_SSL=1 + CIBW_ENVIRONMENT_MACOS: SSL_LIB_PATH="$(brew --prefix openssl@${{ env.MACOS_OPENSSL_VERSION }})/lib/" CPATH="$(brew --prefix openssl@${{ env.MACOS_OPENSSL_VERSION }})/include/" STATIC_SSL=1 CIBW_BUILD: ${{ env.BUILD_IDENTIFIER }} CIBW_BUILD_FRONTEND: build CIBW_BEFORE_ALL_LINUX: > diff --git a/BUILD.md b/BUILD.md index 0b882e5fe..61504b29a 100644 --- a/BUILD.md +++ b/BUILD.md @@ -87,8 +87,7 @@ By default macOS will be missing command line tools. The dependencies can be installed through the macOS package manager [Homebrew](http://brew.sh/). - brew install openssl@1 - # brew uninstall openssl@3 + brew install openssl@3 ### All distros @@ -109,8 +108,8 @@ using the wrong version of the C client. This can causes strange issues when bui Also, for macOS or any other operating system that doesn't have OpenSSL installed by default, you must install it and specify its location when building the wheel. In macOS, you would run these commands: ``` -export SSL_LIB_PATH="$(brew --prefix openssl@1.1)/lib/" -export CPATH="$(brew --prefix openssl@1.1)/include/" +export SSL_LIB_PATH="$(brew --prefix openssl@3)/lib/" +export CPATH="$(brew --prefix openssl@3)/include/" export STATIC_SSL=1 ```