From 58dd343cd68ac3dd0d1fbd4e8aa2e4b44a99d760 Mon Sep 17 00:00:00 2001 From: kirill Date: Mon, 28 Oct 2024 19:48:38 +0000 Subject: share/man/man5/python-module.5: document MODPY_TEST_LINK_SO --- share/man/man5/python-module.5 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/man/man5/python-module.5 b/share/man/man5/python-module.5 index f5cac281305..505d3e49299 100644 --- a/share/man/man5/python-module.5 +++ b/share/man/man5/python-module.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: python-module.5,v 1.13 2024/07/25 15:36:56 sthen Exp $ +.\" $OpenBSD: python-module.5,v 1.14 2024/10/28 19:48:37 kirill Exp $ .\" .\" Copyright (c) 2008 Marc Espie .\" @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 25 2024 $ +.Dd $Mdocdate: October 28 2024 $ .Dt PYTHON-MODULE 5 .Os .Sh NAME @@ -57,6 +57,7 @@ The module then sets .Ev MODPY_SITEPKG , .Ev MODPY_SETUP , .Ev MODPY_TEST_DIR , +.Ev MODPY_TEST_LINK_SO , .Ev MODPY_TEST_LOCALE , .Ev MODPY_WANTLIB , .Ev MODPY_LIB_DEPENDS , @@ -101,6 +102,10 @@ and changes to the directory specified in by default ${WRKSRC} .Pc before running tests. +In addition, it can link all .so files in ${WRKSRC} if +.Ev MODPY_TEST_LINK_SO +is set to Yes, which is required if you are using tests +which use Python code that loads .so files via relative imports. .Pp Most modern Python software can be packaged using a PEP 517 build frontend (in the -- cgit v1.2.3