Skip to content

Commit b053d69

Browse files
committed
python: Explicitly set BUILDLINK_DEPMETHOD.
Previously if PYTHON_FOR_BUILD_ONLY=no was set, but a package further up the dependency tree set BUILDLINK_DEPMETHOD=build (e.g. py-pybind11), then python would incorrectly end up inheriting that setting, leading to failures with USE_INDIRECT_DEPENDS=yes enabled. Tested in bulk builds, and fixes build of py-matplotlib. Approved during freeze by Benny.
1 parent 2d5c81c commit b053d69

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lang/python/pyversion.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: pyversion.mk,v 1.168 2025/05/07 10:29:25 tnn Exp $
1+
# $NetBSD: pyversion.mk,v 1.169 2025/06/16 09:27:03 jperkin Exp $
22

33
# This file should be included by packages as a way to depend on
44
# python when none of the other methods are appropriate, e.g. a
@@ -204,6 +204,8 @@ TEST_DEPENDS+= ${PYDEPENDENCY}
204204
. else
205205
. if !empty(PYTHON_FOR_BUILD_ONLY:M[yY][eE][sS])
206206
BUILDLINK_DEPMETHOD.python?= build
207+
. else
208+
BUILDLINK_DEPMETHOD.python?= full
207209
. endif
208210
. include "${PYPKGSRCDIR}/buildlink3.mk"
209211
. if ${USE_CROSS_COMPILE:tl} == "yes"

0 commit comments

Comments
 (0)