pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Extend PYTHON_FOR_BUILD_ONLY to test



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb520160d4ab
branches:  trunk
changeset: 313731:eb520160d4ab
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Oct 07 23:56:23 2018 +0000

description:
Extend PYTHON_FOR_BUILD_ONLY to test

diffstat:

 lang/python/pyversion.mk |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a547363b646d -r eb520160d4ab lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Sun Oct 07 23:50:56 2018 +0000
+++ b/lang/python/pyversion.mk  Sun Oct 07 23:56:23 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.124 2018/07/03 03:55:40 adam Exp $
+# $NetBSD: pyversion.mk,v 1.125 2018/10/07 23:56:23 ryoon Exp $
 
 # This file determines which Python version is used as a dependency for
 # a package.
@@ -39,7 +39,7 @@
 # PYTHON_FOR_BUILD_ONLY
 #      Whether Python is needed only at build time or at run time.
 #
-#      Possible values: yes no tool
+#      Possible values: yes no test tool
 #      Default: no
 #
 # PYTHON_SELF_CONFLICT
@@ -165,6 +165,8 @@
 .if defined(PYPKGSRCDIR)
 .  if !empty(PYTHON_FOR_BUILD_ONLY:M[tT][oO][oO][lL])
 TOOL_DEPENDS+=                 ${PYDEPENDENCY}
+.  elif !empty(PYTHON_FOR_BUILD_ONLY:M[tT][eE][sS][tT])
+TEST_DEPENDS+=                 ${PYDEPENDENCY}
 .  else
 .    if !empty(PYTHON_FOR_BUILD_ONLY:M[yY][eE][sS])
 BUILDLINK_DEPMETHOD.python?=   build



Home | Main Index | Thread Index | Old Index