python3-host.mk: disable pip --no-binary on macOS
authorFelix Fietkau <[email protected]>
Mon, 3 Mar 2025 11:18:13 +0000 (12:18 +0100)
committerFelix Fietkau <[email protected]>
Mon, 3 Mar 2025 11:18:16 +0000 (12:18 +0100)
For some reason, pip builds a broken Cython, which segfaults on attempting
to install wheel. Work around this by allowing to use precompiled wheels.

Signed-off-by: Felix Fietkau <[email protected]>
lang/python/python3-host.mk

index ae34ba7277bfbbdd8ae958388e1ae6b4a2ec6ca6..64d4e373e86877f4721fbcebc9d8bc38544b70c5 100644 (file)
@@ -109,7 +109,7 @@ define HostPython3/PipInstall
                $(HOST_PYTHON3_PIP_VARS) \
                $(HOST_PYTHON3_PIP) \
                        install \
-                       --no-binary :all: \
+                       $(if $(findstring Darwin,$(HOST_OS)),,--no-binary :all:) \
                        --progress-bar off \
                        --require-hashes \
                        $(1) \