only print MODPY_PYBUILD message if pyproject.toml exists for Python 3,

MODPY_PYBUILD isn't used for 2.7.
This commit is contained in:
sthen
2024-12-26 11:03:27 +00:00
parent af03bd9f8e
commit 2be6a44549
+1 -1
View File
@@ -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 ] && \