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

trunk
Last change on this file since 656007f 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
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[0cf85fa]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
[301c411]7 <!ENTITY packaging-download-http "https://files.pythonhosted.org/packages/source/p/packaging/packaging-&packaging-version;.tar.gz">
[432ea40]8 <!ENTITY packaging-download-ftp " ">
[569925c7]9 <!ENTITY packaging-md5sum "&packaging-md5sum;">
[2366dada]10 <!ENTITY packaging-size "148 KB">
11 <!ENTITY packaging-buildsize "2.6 MB (add 20 MB for tests)">
[72c62e4]12 <!ENTITY packaging-time "less than 0.1 SBU (0.2 SBU for tests)">
[0cf85fa]13]>
14
[036821b]15 <sect2 id="packaging" xreflabel="packaging-&packaging-version;">
[0cf85fa]16
[432ea40]17 <title>Packaging-&packaging-version;</title>
[0cf85fa]18
[432ea40]19 <indexterm zone="packaging">
20 <primary sortas="a-packaging">packaging</primary>
[0cf85fa]21 </indexterm>
22
23 <sect3 role="package">
[432ea40]24 <title>Introduction to Packaging Module</title>
[0cf85fa]25
26 <para>
[432ea40]27 The <application>Packaging</application> library provides utilities
28 that implement the interoperability specifications which have clearly
[e343b67]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.
[0cf85fa]32 </para>
33
[09ddf35a]34 &lfs122_checked;
[0cf85fa]35
36 <bridgehead renderas="sect4">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
[432ea40]40 Download (HTTP): <ulink url="&packaging-download-http;"/>
[0cf85fa]41 </para>
42 </listitem>
43 <listitem>
44 <para>
[432ea40]45 Download (FTP): <ulink url="&packaging-download-ftp;"/>
[0cf85fa]46 </para>
47 </listitem>
48 <listitem>
49 <para>
[432ea40]50 Download MD5 sum: &packaging-md5sum;
[0cf85fa]51 </para>
52 </listitem>
53 <listitem>
54 <para>
[432ea40]55 Download size: &packaging-size;
[0cf85fa]56 </para>
57 </listitem>
58 <listitem>
59 <para>
[432ea40]60 Estimated disk space required: &packaging-buildsize;
[0cf85fa]61 </para>
62 </listitem>
63 <listitem>
64 <para>
[432ea40]65 Estimated build time: &packaging-time;
[0cf85fa]66 </para>
67 </listitem>
68 </itemizedlist>
69
[432ea40]70 <bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
[0cf85fa]71
[ef6402e]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
[0cf85fa]79 </sect3>
80
81 <sect3 role="installation">
[432ea40]82 <title>Installation of Packaging</title>
[0cf85fa]83
84 <para> Build the module: </para>
85
[db244ae2]86&build-wheel;
[0cf85fa]87
88 <para>
[ef6402e]89 Now, as the <systemitem class="username">root</systemitem> user:
[0cf85fa]90 </para>
91
[db244ae2]92<screen role="root"><userinput>&install-wheel; packaging</userinput></screen>
[ef6402e]93
[0cf85fa]94 <para>
[ef6402e]95 Assuming <xref linkend="pytest"/> is installed, but the other optional
[e1dc8db]96 dependency is not, the installation can be tested with the following
[ef6402e]97 commands:
[0cf85fa]98 </para>
99
[ef6402e]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>
[0cf85fa]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>
[432ea40]120 <seg>None</seg>
[0cf85fa]121 <seg>None</seg>
122 <seg>
[432ea40]123 /usr/lib/python&python3-majorver;/site-packages/packaging and
124 /usr/lib/python&python3-majorver;/site-packages/packaging-&packaging-version;.dist-info
[0cf85fa]125 </seg>
126 </seglistitem>
127 </segmentedlist>
[432ea40]128
[0cf85fa]129 </sect3>
130
131 </sect2>
Note: See TracBrowser for help on using the repository browser.