python3-host.mk: disable pip --no-binary on macOS
authorFelix Fietkau <nbd@nbd.name>
Mon, 3 Mar 2025 11:18:13 +0000 (12:18 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 21 Oct 2025 23:11:15 +0000 (01:11 +0200)
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 <nbd@nbd.name>
(cherry picked from commit d798ccce9afb38b12443b6e7a4b7373fc4ef5f17)

lang/python/python3-host.mk

index 3cc20c2cef0ed150241c48100ffb2a1dacdafc08..1f7ce001336a165a2dd489abe2499edf4599e5bf 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) \