On Sat, 05 Oct 2024 12:17:31 +0200,
Klemens Nanni <k...@openbsd.org> wrote:
> 
> This should be documented in python-module(5).
>

Something like this?

Index: python-module.5
===================================================================
RCS file: /cvs/src/share/man/man5/python-module.5,v
retrieving revision 1.13
diff -u -p -r1.13 python-module.5
--- python-module.5     25 Jul 2024 15:36:56 -0000      1.13
+++ python-module.5     5 Oct 2024 12:30:48 -0000
@@ -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 i
 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

> I think you can do without double-escaping and prepending the target variable
> by using your own and using it fist, this way it looks a clearer;  diff below.
>

Your approach cleaner and works. Let use it.

-- 
wbr, Kirill

Reply via email to