[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[22f9c48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[5fe69261] | 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
[22f9c48] | 5 | %general-entities;
|
---|
| 6 |
|
---|
[838d2e36] | 7 | <!ENTITY PyYAML-download-http "https://files.pythonhosted.org/packages/source/P/PyYAML/pyyaml-&PyYAML-version;.tar.gz">
|
---|
[22f9c48] | 8 | <!ENTITY PyYAML-download-ftp " ">
|
---|
[569925c7] | 9 | <!ENTITY PyYAML-md5sum "&PyYAML-md5sum;">
|
---|
[838d2e36] | 10 | <!ENTITY PyYAML-size "128 KB">
|
---|
| 11 | <!ENTITY PyYAML-buildsize "8.5 MB">
|
---|
| 12 | <!ENTITY PyYAML-time "0.1 SBU">
|
---|
[22f9c48] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin PyYAML -->
|
---|
[aa8bac6] | 16 | <sect2 id="PyYAML" xreflabel="PyYAML-&PyYAML-version;">
|
---|
[22f9c48] | 17 |
|
---|
| 18 | <title>PyYAML-&PyYAML-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="PyYAML">
|
---|
| 21 | <primary sortas="a-PyYAML">PyYAML</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to PyYAML Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>PyYAML</application> is a <application>Python</application>
|
---|
| 29 | module that implements the next generation YAML parser and emitter.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[09ddf35a] | 32 | &lfs122_checked;
|
---|
[36de390] | 33 |
|
---|
[22f9c48] | 34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&PyYAML-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&PyYAML-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &PyYAML-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &PyYAML-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &PyYAML-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &PyYAML-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">PyYAML Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 71 | <para role="required">
|
---|
[7b459c22] | 72 | <xref linkend="cython"/> and
|
---|
[b738ceb] | 73 | <xref linkend="libyaml"/>
|
---|
[22f9c48] | 74 | </para>
|
---|
| 75 |
|
---|
[9fdc4c2] | 76 | <bridgehead renderas="sect5">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
| 78 | <xref linkend="pytest"/> (for testing)
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
[22f9c48] | 81 | </sect3>
|
---|
| 82 |
|
---|
| 83 | <sect3 role="installation">
|
---|
| 84 | <title>Installation of PyYAML</title>
|
---|
[0797528] | 85 |
|
---|
[22f9c48] | 86 | <para>
|
---|
[838d2e36] | 87 | Build PyYAML with the following command:
|
---|
[22f9c48] | 88 | </para>
|
---|
| 89 |
|
---|
[db244ae2] | 90 | &build-wheel;
|
---|
[22f9c48] | 91 |
|
---|
| 92 | <para>
|
---|
[e7d47128] | 93 | Now, install the module as the &root; user:
|
---|
[22f9c48] | 94 | </para>
|
---|
| 95 |
|
---|
[db244ae2] | 96 | <screen role="root"><userinput>&install-wheel; PyYAML</userinput></screen>
|
---|
[22f9c48] | 97 |
|
---|
[8f81b1d] | 98 | <para>
|
---|
[9fdc4c2] | 99 | To test the results, issue: <command>pytest</command>.
|
---|
[8f81b1d] | 100 | </para>
|
---|
| 101 |
|
---|
[22f9c48] | 102 | </sect3>
|
---|
| 103 |
|
---|
[e7d47128] | 104 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 105 | href="../../../xincludes/pip3-cmd-explain.xml"/>
|
---|
[e7d47128] | 106 |
|
---|
[22f9c48] | 107 | <sect3 role="content">
|
---|
| 108 | <title>Contents</title>
|
---|
| 109 |
|
---|
| 110 | <segmentedlist>
|
---|
| 111 | <segtitle>Installed Programs</segtitle>
|
---|
| 112 | <segtitle>Installed Libraries</segtitle>
|
---|
| 113 | <segtitle>Installed Directories</segtitle>
|
---|
| 114 |
|
---|
| 115 | <seglistitem>
|
---|
| 116 | <seg>
|
---|
| 117 | None
|
---|
| 118 | </seg>
|
---|
| 119 | <seg>
|
---|
[e7d47128] | 120 | None
|
---|
[22f9c48] | 121 | </seg>
|
---|
| 122 | <seg>
|
---|
[e7d47128] | 123 | /usr/lib/python&python3-majorver;/site-packages/PyYAML-&yaml-version;.dist-info
|
---|
[22f9c48] | 124 | </seg>
|
---|
| 125 | </seglistitem>
|
---|
| 126 | </segmentedlist>
|
---|
| 127 |
|
---|
| 128 | </sect3>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|