pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/python
Module Name: pkgsrc
Committed By: joerg
Date: Mon Jul 3 18:14:40 UTC 2017
Modified Files:
pkgsrc/lang/python: extension.mk
Log Message:
Add DISTUTILS_BUILDDIR_IN_TEST_ENV as flag to get the build directory
into PYTHONPATH for testing.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 pkgsrc/lang/python/extension.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/python/extension.mk
diff -u pkgsrc/lang/python/extension.mk:1.50 pkgsrc/lang/python/extension.mk:1.51
--- pkgsrc/lang/python/extension.mk:1.50 Wed May 17 11:17:04 2017
+++ pkgsrc/lang/python/extension.mk Mon Jul 3 18:14:40 2017
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.50 2017/05/17 11:17:04 wiz Exp $
+# $NetBSD: extension.mk,v 1.51 2017/07/03 18:14:40 joerg Exp $
.include "../../lang/python/pyversion.mk"
@@ -76,3 +76,10 @@ PRINT_PLIST_AWK+= gsub(/__pycache__\//,
PRINT_PLIST_AWK+= gsub(/opt-1\.pyc$$/, "pyo")
PRINT_PLIST_AWK+= gsub(/\.cpython-${_PYTHON_VERSION}/, "")}
.endif
+
+DISTUTILS_BUILDDIR_IN_TEST_ENV?= no
+
+.if ${DISTUTILS_BUILDDIR_IN_TEST_ENV} == "yes"
+DISTUTILS_BUILDDIR_CMD= cd ${WRKSRC} && ${PYTHONBIN} ${.CURDIR}/../../lang/python/distutils-builddir.py
+TEST_ENV+= PYTHONPATH=${DISTUTILS_BUILDDIR_CMD:sh}
+.endif
Home |
Main Index |
Thread Index |
Old Index