From 70c0d417641d1c8b18709226baa158e7533ecc43 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 1 Dec 2024 11:00:30 -0600 Subject: [PATCH] Fix wheel builds when cffi needs to be built from source --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b09b2ad..88d82b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,3 +91,6 @@ pure-python = "false" [tool.cibuildwheel.windows] before-test = [] # Windows cmd has different syntax and pip chooses wheels + +[tool.cibuildwheel.linux] +before-all = "yum install -y libffi-devel || apk add --upgrade libffi-dev || apt-get install libffi-dev"