source: general/prog/python-modules/packaging.xml@ aeb0a9c

trunk
Last change on this file since aeb0a9c was 09ddf35a, checked in by Douglas R. Reno <renodr@…>, 5 weeks ago

Tag Sphinx, gdb, and test dependencies for llvm

  • Property mode set to 100644
File size: 4.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 packaging-download-http "https://files.pythonhosted.org/packages/source/p/packaging/packaging-&packaging-version;.tar.gz">
8 <!ENTITY packaging-download-ftp " ">
9 <!ENTITY packaging-md5sum "&packaging-md5sum;">
10 <!ENTITY packaging-size "148 KB">
11 <!ENTITY packaging-buildsize "2.6 MB (add 20 MB for tests)">
12 <!ENTITY packaging-time "less than 0.1 SBU (0.2 SBU for tests)">
13]>
14
15 <sect2 id="packaging" xreflabel="packaging-&packaging-version;">
16
17 <title>Packaging-&packaging-version;</title>
18
19 <indexterm zone="packaging">
20 <primary sortas="a-packaging">packaging</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Packaging Module</title>
25
26 <para>
27 The <application>Packaging</application> library provides utilities
28 that implement the interoperability specifications which have clearly
29 one correct behaviour (PEP440) or benefit greatly from having a single
30 shared implementation (PEP425). This includes utilities for version
31 handling, specifiers, markers, tags, and requirements.
32 </para>
33
34 &lfs122_checked;
35
36 <bridgehead renderas="sect4">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&packaging-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&packaging-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &packaging-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &packaging-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &packaging-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &packaging-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
71
72 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
73 <para role="optional">
74 <xref linkend="pytest"/> and
75 <ulink url="https://pypi.org/project/pretend/">pretend</ulink>
76 </para>
77
78
79 </sect3>
80
81 <sect3 role="installation">
82 <title>Installation of Packaging</title>
83
84 <para> Build the module: </para>
85
86&build-wheel;
87
88 <para>
89 Now, as the <systemitem class="username">root</systemitem> user:
90 </para>
91
92<screen role="root"><userinput>&install-wheel; packaging</userinput></screen>
93
94 <para>
95 Assuming <xref linkend="pytest"/> is installed, but the other optional
96 dependency is not, the installation can be tested with the following
97 commands:
98 </para>
99
100<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
101source testenv/bin/activate &amp;&amp;
102pip3 install pretend &amp;&amp;
103python3 /usr/bin/pytest<!-- no && because of a possible error -->
104deactivate</userinput></screen>
105
106 </sect3>
107
108 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
109 href="../../../xincludes/pip3-cmd-explain.xml"/>
110
111 <sect3 role="content">
112 <title>Contents</title>
113
114 <segmentedlist>
115 <segtitle>Installed Programs</segtitle>
116 <segtitle>Installed Libraries</segtitle>
117 <segtitle>Installed Directories</segtitle>
118
119 <seglistitem>
120 <seg>None</seg>
121 <seg>None</seg>
122 <seg>
123 /usr/lib/python&python3-majorver;/site-packages/packaging and
124 /usr/lib/python&python3-majorver;/site-packages/packaging-&packaging-version;.dist-info
125 </seg>
126 </seglistitem>
127 </segmentedlist>
128
129 </sect3>
130
131 </sect2>
Note: See TracBrowser for help on using the repository browser.