pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python python: Fix cross-build with pkg_resources.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/185067bc4445
branches:  trunk
changeset: 376185:185067bc4445
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Sun Apr 03 11:54:48 2022 +0000

description:
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.

diffstat:

 lang/python/egg.mk |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 83e1647669e6 -r 185067bc4445 lang/python/egg.mk
--- a/lang/python/egg.mk        Sun Apr 03 10:54:52 2022 +0000
+++ b/lang/python/egg.mk        Sun Apr 03 11:54:48 2022 +0000
@@ -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
+.  endif
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:${SETUPTOOLS_PATH}
-.  endif
 .endif
 
 INSTALLATION_DIRS+=    ${PYSITELIB}



Home | Main Index | Thread Index | Old Index