pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python Define "do-test" target for testing Python...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8eb417a0d6d
branches: trunk
changeset: 625982:e8eb417a0d6d
user: tron <tron%pkgsrc.org@localhost>
date: Tue Oct 29 14:18:33 2013 +0000
description:
Define "do-test" target for testing Python packages.
diffstat:
lang/python/extension.mk | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 8c9d05498c76 -r e8eb417a0d6d lang/python/extension.mk
--- a/lang/python/extension.mk Tue Oct 29 13:32:07 2013 +0000
+++ b/lang/python/extension.mk Tue Oct 29 14:18:33 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.31 2012/10/03 22:03:41 wiz Exp $
+# $NetBSD: extension.mk,v 1.32 2013/10/29 14:18:33 tron Exp $
.include "../../lang/python/pyversion.mk"
@@ -24,7 +24,9 @@
.if ${_USE_DESTDIR} != "no"
_PYSETUPINSTALLARGS+= --root=${DESTDIR:Q}
.endif
-PY_PATCHPLIST?= yes
+PYSETUPINSTALLARGS?= #empty
+PYSETUPTESTTARGET?= test
+PYSETUPTESTARGS?= #empty
PYSETUPSUBDIR?= #empty
do-build:
@@ -34,6 +36,10 @@
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS})
+do-test:
+ (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
+ ${PYSETUP} ${PYSETUPARGS} ${PYSETUPTESTTARGET} ${PYSETUPTESTARGS})
+
.endif
# PY_NO_EGG suppress the installation of the egg info file (and
Home |
Main Index |
Thread Index |
Old Index