Sun Apr 3 11:54:48 2022 UTC ()
python: Fix cross-build with pkg_resources.

setuptools must still be in TOOL_DEPENDS because we run it during the
build; for pkg_resources it must _also_ be in DEPENDS because the
built package needs it to run.


(riastradh)
diff -r1.36 -r1.37 pkgsrc/lang/python/egg.mk

cvs diff -r1.36 -r1.37 pkgsrc/lang/python/egg.mk (expand / switch to context diff)
--- pkgsrc/lang/python/egg.mk 2022/02/08 17:19:50 1.36
+++ pkgsrc/lang/python/egg.mk 2022/04/03 11:54:48 1.37
@@ -1,4 +1,4 @@
-# $NetBSD: egg.mk,v 1.36 2022/02/08 17:19:50 gutteridge Exp $
+# $NetBSD: egg.mk,v 1.37 2022/04/03 11:54:48 riastradh Exp $
 #
 # Common logic to handle Python Eggs
 #
@@ -55,9 +55,8 @@
 .  endif
 .  if "${USE_PKG_RESOURCES}" == "yes"
 DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:${SETUPTOOLS_PATH}
-.  else
-TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:${SETUPTOOLS_PATH}
 .  endif
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:${SETUPTOOLS_PATH}
 .endif
 
 INSTALLATION_DIRS+=	${PYSITELIB}