Skip to content

Commit ba22e35

Browse files
alexrashedclaude
andcommitted
fix: pin cryptography<49 to restore macOS x86_64 wheel support
cryptography 49.0.0 dropped macOS x86_64 wheel publishing and switched to AWS-LC as its Rust backend. Building from source on macos-15-intel produces a _rust.abi3.so that references _SSL_get0_group_name (an AWS-LC extension), but PyInstaller bundles standard OpenSSL's libssl.3.dylib which lacks this symbol, causing a crash at runtime. Pinning to <49 ensures pip selects 48.0.1, which ships a universal2 wheel with a properly delocated OpenSSL for both arm64 and x86_64. Reverts the now-unnecessary OPENSSL_DIR workflow workaround. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1a8a8ce commit ba22e35

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,10 @@ jobs:
5151
- name: Create virtual environment
5252
uses: nick-fields/retry@v4
5353
with:
54-
timeout_minutes: 10
54+
timeout_minutes: 5
5555
max_attempts: 5
5656
retry_wait_seconds: 120
5757
command: make clean-venv venv
58-
env:
59-
# cryptography has no pre-built wheel for macOS x86_64 and builds from
60-
# source via Rust. PKG_CONFIG_PATH (set by setup-python) points to
61-
# Python's own OpenSSL, which can have newer headers than the Homebrew
62-
# libssl.3.dylib that PyInstaller later bundles — causing a
63-
# symbol-not-found crash at runtime. Pinning OPENSSL_DIR to Homebrew
64-
# ensures openssl-sys compiles and links against the exact same dylib
65-
# that PyInstaller will bundle.
66-
OPENSSL_DIR: ${{ matrix.runner == 'macos-15-intel' && '/usr/local/opt/openssl@3' || '' }}
6758

6859
- name: Build using pyinstaller
6960
shell: bash

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pyinstaller
22
localstack==2026.5.0
33
cookiecutter==2.6.0
4+
cryptography<49

0 commit comments

Comments
 (0)