mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
ceafde507b
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22119 af4574ff-66df-0310-9fd7-8a98e5e911e0
139 lines
4.0 KiB
XML
139 lines
4.0 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 pycrypto-download-http "&pymodules-dl;/p/pycrypto/pycrypto-&pycrypto-version;.tar.gz">
|
|
<!ENTITY pycrypto-download-ftp " ">
|
|
<!ENTITY pycrypto-md5sum "55a61a054aa66812daf5161a0d5d7eda">
|
|
<!ENTITY pycrypto-size "440 KB">
|
|
<!ENTITY pycrypto-buildsize "14 MB">
|
|
<!ENTITY pycrypto-time "0.1 SBU">
|
|
]>
|
|
|
|
<!-- Begin pycrypto -->
|
|
<sect2 id="pycrypto" xreflabel="PyCrypto-&pycrypto-version;">
|
|
|
|
<title>PyCrypto-&pycrypto-version;</title>
|
|
|
|
<indexterm zone="pycrypto">
|
|
<primary sortas="a-pycrypto">pycrypto</primary>
|
|
</indexterm>
|
|
|
|
<sect3 role="package">
|
|
<title>Introduction to the PyCrypto Module</title>
|
|
|
|
<para>
|
|
<application>PyCrypto</application> is a collection of both secure hash
|
|
functions (such as SHA256 and RIPEMD160), and various encryption
|
|
algorithms (AES, DES, RSA, ElGamal, etc.).
|
|
</para>
|
|
|
|
&lfs90_checked;
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&pycrypto-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&pycrypto-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &pycrypto-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &pycrypto-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &pycrypto-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &pycrypto-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect4">PyCrypto Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect5">Recommended</bridgehead>
|
|
<para role="recommended">
|
|
<xref linkend="python2"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/pycrypto"/>
|
|
</para>
|
|
</sect3>
|
|
|
|
<sect3 role="installation">
|
|
<title>Installation of PyCrypto</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 the <application>Python 2</application> and
|
|
<application>Python 3</application> modules, run the following commands:
|
|
</para>
|
|
|
|
<screen><userinput>python2 setup.py build &&
|
|
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 &&
|
|
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>
|
|
pycrypto-&pycrypto-version;-py&python2-majorver;.egg-info and/or
|
|
pycrypto-&pycrypto-version;-py&python3-majorver;.egg-info
|
|
</seg>
|
|
<seg>
|
|
/usr/lib/python&python2-majorver;/site-packages/Crypto and/or
|
|
/usr/lib/python&python3-majorver;/site-packages/Crypto
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
<!--End pycrypto -->
|