From 14478d783199e5f6958f3a990d74cdc529451902 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 6 Apr 2023 09:07:32 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93abc710..ab563d8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -433,11 +433,18 @@ jobs: echo "after requirements..." "${PYTHON}" -m pip list if [[ "${RUNNER_OS}" == "macOS" ]]; then + # cffi is a dep of cryptography and doesn't ship + # a universal2 wheel so we must build one ourself :-/ export CFLAGS="-arch x86_64 -arch arm64" export ARCHFLAGS="-arch x86_64 -arch arm64" - "${PYTHON}" -m pip install --upgrade cffi --force --no-binary :cffi: + "${PYTHON}" -m pip install --upgrade --force-reinstall --no-binary :all: \ + --no-cache-dir --no-deps --use-pep517 \ + --use-feature=no-binary-enable-wheel-cache \ + cffi echo "before cryptography..." "${PYTHON}" -m pip list + # cryptography has a universal2 wheel but getting it installed + # on x86-64 MacOS is a royal pain in the keester. "${PYTHON}" -m pip download --only-binary :all: \ --dest . \ --no-cache \