<?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 pyxdg-download-http
           "http://people.freedesktop.org/~takluyver/pyxdg-&pyxdg-version;.tar.gz">
  <!ENTITY pyxdg-download-ftp  " ">
  <!ENTITY pyxdg-md5sum        "bedcdb3a0ed85986d40044c87f23477c">
  <!ENTITY pyxdg-size          "48 KB">
  <!ENTITY pyxdg-buildsize     "800 KB">
  <!ENTITY pyxdg-time          "less than 0.1 SBU">
]>

  <!-- Begin PyXDG -->
  <sect2 id="pyxdg" xreflabel="PyXDG-&pyxdg-version;">

    <title>PyXDG-&pyxdg-version;</title>

    <indexterm zone="pyxdg">
      <primary sortas="a-PyXDG">PyXDG</primary>
    </indexterm>

    <sect3 role="package">
      <title>Introduction to PyXDG Module</title>

      <para>
        <application>PyXDG</application> is a <application>Python</application>
        library to access freedesktop.org standards.
      </para>

      &lfs77_checked;

      <bridgehead renderas="sect4">Package Information</bridgehead>
      <itemizedlist spacing="compact">
        <listitem>
          <para>
            Download (HTTP): <ulink url="&pyxdg-download-http;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download (FTP): <ulink url="&pyxdg-download-ftp;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download MD5 sum: &pyxdg-md5sum;
          </para>
        </listitem>
        <listitem>
          <para>
            Download size: &pyxdg-size;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated disk space required: &pyxdg-buildsize;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated build time: &pyxdg-time;
          </para>
        </listitem>
      </itemizedlist>

      <bridgehead renderas="sect4">PyXDG Dependencies</bridgehead>

      <bridgehead renderas="sect5">Required</bridgehead>
      <para role="required">
        <xref linkend="python2"/> and/or
        <xref linkend="python3"/>
      </para>

      <para condition="html" role="usernotes">
        User Notes: <ulink url="&blfs-wiki;/pyxdg"/>
      </para>
    </sect3>

    <sect3 role="installation">
      <title>Installation of PyXDG</title>

      <note>
        <para>
          Both <application>Python 2</application> and
          <application>Python 3</application> modules can
          be built and installed without any conflicts.
        </para>
      </note>

      <para>
        To install the <application>Python 2</application> module,
        run the following command as the
        <systemitem class="username">root</systemitem> user:
      </para>

<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>

      <para>
        To install the <application>Python 3</application> module,
        run the following command as the
        <systemitem class="username">root</systemitem> user:
      </para>

<screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>

    </sect3>

    <sect3 role="content">
      <title>Contents</title>

      <segmentedlist>
        <segtitle>Installed Directory</segtitle>

        <seglistitem>
          <seg>
            /usr/lib/python&python2-majorver;/site-packages/xdg and/or
            /usr/lib/python&python3-majorver;/site-packages/xdg
          </seg>
        </seglistitem>
      </segmentedlist>

    </sect3>

  </sect2>
  <!--End PyXDG -->
