glfs/general/prog/pyyaml.xml
Xi Ruoyao c6b192c037 secure package download URLs
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24436 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-04-05 12:36:04 +00:00

142 lines
3.9 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY PyYAML-download-http "https://pyyaml.org/download/pyyaml/PyYAML-&PyYAML-version;.tar.gz">
<!ENTITY PyYAML-download-ftp " ">
<!ENTITY PyYAML-md5sum "d3590b85917362e837298e733321962b">
<!ENTITY PyYAML-size "264 KB">
<!ENTITY PyYAML-buildsize "15 MB">
<!ENTITY PyYAML-time "0.1 SBU">
]>
<!-- Begin PyYAML -->
<sect2 id="PyYAML" xreflabel="PyYAML-&PyYAML-version;">
<title>PyYAML-&PyYAML-version;</title>
<indexterm zone="PyYAML">
<primary sortas="a-PyYAML">PyYAML</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to PyYAML Module</title>
<para>
<application>PyYAML</application> is a <application>Python</application>
module that implements the next generation YAML parser and emitter.
</para>
&lfs101_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&PyYAML-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&PyYAML-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &PyYAML-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &PyYAML-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &PyYAML-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &PyYAML-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">PyYAML Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="libyaml"/>
</para>
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<xref linkend="python2"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/PyYAML"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of PyYAML</title>
<note>
<para>
Both <application>Python 2</application> and
<application>Python 3</application> modules can
be built and installed without any conflicts.
</para>
</note>
<!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
<para>
To build both <application>Python 2</application> and
<application>Python 3</application> modules,
run the following commands:
</para>
<screen><userinput>python2 setup.py build &amp;&amp;
python3 setup.py build</userinput></screen>
<para>
To install both modules, run the following commands as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>python2 setup.py install --optimize=1 &amp;&amp;
python3 setup.py install --optimize=1</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
_yaml.so
</seg>
<seg>
/usr/lib/python&python2-majorver;/site-packages/yaml and/or
/usr/lib/python&python3-majorver;/site-packages/yaml
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>