source: general/prog/python-dependencies/meson_python.xml@ 28c578d

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 28c578d was 28c578d, checked in by Xi Ruoyao <xry111@…>, 2 months ago

meson_python: Test suite needs patchelf, and prevent .gitconfig from breaking tests

  • Property mode set to 100644
File size: 5.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
7 <!ENTITY meson_python-download-http "https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-&meson_python-version;.tar.gz">
8 <!ENTITY meson_python-download-ftp " ">
9 <!ENTITY meson_python-md5sum "&meson_python-md5sum;">
10 <!ENTITY meson_python-size "80 KB">
11 <!ENTITY meson_python-buildsize "1.3 MB">
12 <!ENTITY meson_python-time "less than 0.1 SBU">
13]>
14
15 <sect2 id="meson_python" xreflabel="meson_python-&meson_python-version;">
16
17 <title>Meson_python-&meson_python-version;</title>
18
19 <indexterm zone="meson_python">
20 <primary sortas="a-meson_python">meson_python</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Meson_python Module</title>
25
26 <para>
27 The <application>Meson_python</application> module contains
28 a Python build backend (PEP 517) for Meson projects.
29 </para>
30
31 &lfs121_checked;
32
33 <bridgehead renderas="sect4">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>
37 Download (HTTP): <ulink url="&meson_python-download-http;"/>
38 </para>
39 </listitem>
40 <listitem>
41 <para>
42 Download (FTP): <ulink url="&meson_python-download-ftp;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download MD5 sum: &meson_python-md5sum;
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download size: &meson_python-size;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Estimated disk space required: &meson_python-buildsize;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated build time: &meson_python-time;
63 </para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect4">Meson_python Dependencies</bridgehead>
68
69 <bridgehead renderas="sect5">Required</bridgehead>
70 <para role="required">
71 <xref linkend="pyproject-metadata"/>
72 </para>
73
74 <bridgehead renderas="sect5">Recommended (Runtime)</bridgehead>
75 <para role="runtime">
76 <xref linkend="patchelf"/>
77 </para>
78
79 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
80 <para role="optional">
81 <xref linkend="cython"/>,
82 <xref linkend="git"/>,
83 <xref linkend="pytest"/>,
84 <xref linkend="python3"/> (rebuilt after installing
85 <xref role="nodep" linkend="sqlite"/>),
86 <ulink url="https://pypi.org/project/build/">build</ulink>,
87 <!-- pytest-cov mentioned but it seems not really used unless
88 running the "coverage" command explicitly -->
89 and
90 <ulink url="https://pypi.org/project/pytest-mock/">pytest-mock</ulink>
91 </para>
92 </sect3>
93
94 <sect3 role="installation">
95 <title>Installation of Meson_python</title>
96
97 <para>Build the module: </para>
98
99&build-wheel;
100
101 <para>
102 This package does not come with a test suite.
103 </para>
104
105 <para>
106 Now, as the <systemitem class="username">root</systemitem> user:
107 </para>
108
109<screen role="root"><userinput>&install-wheel; meson_python</userinput></screen>
110
111 <para>
112 To test the installation, make sure <xref linkend='git'/>,
113 <xref linkend='patchelf'/>, and <xref linkend='pytest'/> are
114 installed, and <xref linkend='python3'/>
115 has been rebuilt after installing <xref linkend='sqlite'/>, then
116 issue (<literal>HOME=</literal> prevents the
117 <filename>.gitconfig</filename> file in the home directory from
118 interfering the tests):
119 </para>
120
121<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
122testenv/bin/pip3 install 'meson_python[test]' &amp;&amp;
123HOME= testenv/bin/python -m pytest</userinput></screen>
124
125 <!-- https://github.com/mesonbuild/meson-python/issues/619 -->
126 <para>
127 Two tests named <literal>test_missing_version</literal> and
128 <literal>test_pep621</literal> are known to fail with
129 pyproject-metadata-0.8.0 or later.
130 </para>
131
132 </sect3>
133
134 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
135 href="../../../xincludes/pip3-cmd-explain.xml"/>
136
137 <sect3 role="content">
138 <title>Contents</title>
139
140 <segmentedlist>
141 <segtitle>Installed Programs</segtitle>
142 <segtitle>Installed Libraries</segtitle>
143 <segtitle>Installed Directories</segtitle>
144
145 <seglistitem>
146 <seg>None</seg>
147 <seg>None</seg>
148 <seg>
149 /usr/lib/python&python3-majorver;/site-packages/meson_python and
150 /usr/lib/python&python3-majorver;/site-packages/meson_python-&meson_python-version;.dist-info
151 </seg>
152 </seglistitem>
153 </segmentedlist>
154
155 </sect3>
156
157 </sect2>
Note: See TracBrowser for help on using the repository browser.