From 2be6a44549b534580fbcded28da252df5bd0bc36 Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 26 Dec 2024 11:03:27 +0000 Subject: [PATCH] only print MODPY_PYBUILD message if pyproject.toml exists for Python 3, MODPY_PYBUILD isn't used for 2.7. --- lang/python/python.port.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python/python.port.mk b/lang/python/python.port.mk index cf4172d2e83..a11c41dc34e 100644 --- a/lang/python/python.port.mk +++ b/lang/python/python.port.mk @@ -97,7 +97,7 @@ TEST_DEPENDS += ${MODPY_TEST_DEPENDS} _MODPY_PRE_BUILD_STEPS = : -.if ${MODPY_PYBUILD:L} == "no" +.if ${MODPY_PYBUILD:L} == "no" && ${MODPY_MAJOR_VERSION} != 2 # not necessarily an error, but try to draw attention to it. defer printing # the warning to fake-install where it's less likely to scroll off the screen. _MODPY_PRE_BUILD_STEPS += ; if [ -e ${WRKSRC}/pyproject.toml ] && \