1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00

share/man/man5/python-module.5: document MODPY_TEST_LINK_SO

This commit is contained in:
kirill 2024-10-28 19:48:37 +00:00
parent 7216a88fa2
commit 80a776f54c

View File

@ -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 .\" Copyright (c) 2008 Marc Espie
.\" .\"
@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" 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 .Dt PYTHON-MODULE 5
.Os .Os
.Sh NAME .Sh NAME
@ -57,6 +57,7 @@ The module then sets
.Ev MODPY_SITEPKG , .Ev MODPY_SITEPKG ,
.Ev MODPY_SETUP , .Ev MODPY_SETUP ,
.Ev MODPY_TEST_DIR , .Ev MODPY_TEST_DIR ,
.Ev MODPY_TEST_LINK_SO ,
.Ev MODPY_TEST_LOCALE , .Ev MODPY_TEST_LOCALE ,
.Ev MODPY_WANTLIB , .Ev MODPY_WANTLIB ,
.Ev MODPY_LIB_DEPENDS , .Ev MODPY_LIB_DEPENDS ,
@ -101,6 +102,10 @@ and changes to the directory specified in
by default ${WRKSRC} by default ${WRKSRC}
.Pc .Pc
before running tests. 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 .Pp
Most modern Python software can be packaged using a PEP 517 build Most modern Python software can be packaged using a PEP 517 build
frontend (in the frontend (in the