[22f9c48] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 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 MarkupSafe-download-http
|
---|
| 8 | "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-&MarkupSafe-version;.tar.gz">
|
---|
| 9 | <!ENTITY MarkupSafe-download-ftp " ">
|
---|
| 10 | <!ENTITY MarkupSafe-md5sum "f5ab3deee4c37cd6a922fb81e730da6e">
|
---|
| 11 | <!ENTITY MarkupSafe-size "16 KB">
|
---|
| 12 | <!ENTITY MarkupSafe-buildsize "780 KB">
|
---|
| 13 | <!ENTITY MarkupSafe-time "less than 0.1 SBU">
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <!-- Begin MarkupSafe -->
|
---|
| 17 | <sect2 id="MarkupSafe" xreflabel="MarkupSafe-&MarkupSafe-version;" revision="systemd">
|
---|
| 18 |
|
---|
| 19 | <title>MarkupSafe-&MarkupSafe-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="MarkupSafe">
|
---|
| 22 | <primary sortas="a-MarkupSafe">MarkupSafe</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect3 role="package">
|
---|
| 26 | <title>Introduction to MarkupSafe Module</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>MarkupSafe</application> is a <application>Python</application>
|
---|
| 30 | module that implements a XML/HTML/XHTML Markup safe string.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
| 33 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 34 | <itemizedlist spacing="compact">
|
---|
| 35 | <listitem>
|
---|
| 36 | <para>
|
---|
| 37 | Download (HTTP): <ulink url="&MarkupSafe-download-http;"/>
|
---|
| 38 | </para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (FTP): <ulink url="&MarkupSafe-download-ftp;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download MD5 sum: &MarkupSafe-md5sum;
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download size: &MarkupSafe-size;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Estimated disk space required: &MarkupSafe-buildsize;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated build time: &MarkupSafe-time;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </itemizedlist>
|
---|
| 66 |
|
---|
| 67 | <bridgehead renderas="sect4">MarkupSafe Dependencies</bridgehead>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 70 | <para role="required">
|
---|
| 71 | <xref linkend="setuptools"/>
|
---|
| 72 | </para>
|
---|
| 73 |
|
---|
| 74 | <para condition="html" role="usernotes">
|
---|
| 75 | User Notes: <ulink url="&blfs-wiki;/MarkupSafe"/>
|
---|
| 76 | </para>
|
---|
| 77 | </sect3>
|
---|
| 78 |
|
---|
| 79 | <sect3 role="installation">
|
---|
| 80 | <title>Installation of MarkupSafe</title>
|
---|
| 81 |
|
---|
| 82 | <note>
|
---|
| 83 | <para>
|
---|
| 84 | Both <application>Python 2</application> and
|
---|
| 85 | <application>Python 3</application> modules can
|
---|
| 86 | be built and installed without any conflicts.
|
---|
| 87 | </para>
|
---|
| 88 | </note>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
| 91 | To build the <application>Python 2</application> module,
|
---|
| 92 | run the following command:
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>python setup.py build</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | To install the <application>Python 2</application> module,
|
---|
| 99 | run the following command as the
|
---|
| 100 | <systemitem class="username">root</systemitem> user:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | <para>
|
---|
| 106 | To build the <application>Python 3</application> module,
|
---|
| 107 | run the following command:
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput>python3 setup.py build</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
| 113 | To install the <application>Python 3</application> module,
|
---|
| 114 | run the following command as the
|
---|
| 115 | <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | </sect3>
|
---|
| 121 |
|
---|
| 122 | <sect3 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
| 127 | <segtitle>Installed Libraries</segtitle>
|
---|
| 128 | <segtitle>Installed Directories</segtitle>
|
---|
| 129 |
|
---|
| 130 | <seglistitem>
|
---|
| 131 | <seg>
|
---|
| 132 | None
|
---|
| 133 | </seg>
|
---|
| 134 | <seg>
|
---|
| 135 | None
|
---|
| 136 | </seg>
|
---|
| 137 | <seg>
|
---|
| 138 | /usr/lib/python&python2-majorver;/site-packages/markupsafe,
|
---|
| 139 | /usr/lib/python&python2-majorver;/site-packages/MarkupSafe-&MarkupSafe-version;-py&python2-majorver;.egg-info and/or
|
---|
| 140 | /usr/lib/python&python3-majorver;/site-packages/markupsafe,
|
---|
| 141 | /usr/lib/python&python3-majorver;/site-packages/MarkupSafe-&MarkupSafe-version;-py&python3-majorver;.egg-info
|
---|
| 142 | </seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | </sect3>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 | <!--End MarkupSafe -->
|
---|