[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[3aee187] | 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">
|
---|
[3aee187] | 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY py3c-download-http
|
---|
| 8 | "https://github.com/encukou/py3c/archive/v&py3c-version;/py3c-&py3c-version;.tar.gz">
|
---|
[141ee0a5] | 9 | <!ENTITY py3c-md5sum "53029afde7e0cf8672a2d69d378a0cfc">
|
---|
| 10 | <!ENTITY py3c-size "47 KB">
|
---|
[72c62e4] | 11 | <!ENTITY py3c-buildsize "608 KB (with tests)">
|
---|
| 12 | <!ENTITY py3c-time "less than 0.1 SBU (with tests)">
|
---|
[3aee187] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin Py3c -->
|
---|
| 16 | <sect2 id="py3c" xreflabel="Py3c-&py3c-version;">
|
---|
| 17 |
|
---|
| 18 | <title>Py3c-&py3c-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="py3c">
|
---|
| 21 | <primary sortas="a-Py3c">Py3c</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to Py3c</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>Py3c</application> helps you port C extensions to
|
---|
| 29 | Python 3. It provides a detailed guide, and a set of macros to
|
---|
| 30 | make porting easy and reduce boilerplate.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[f822342] | 33 | &lfs122_checked;
|
---|
[3aee187] | 34 |
|
---|
| 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&py3c-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <!--
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&py3c-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | -->
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &py3c-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &py3c-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &py3c-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &py3c-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 | <!--
|
---|
| 71 | <bridgehead renderas="sect4">Py3c Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
| 75 | -->
|
---|
| 76 |
|
---|
| 77 | </sect3>
|
---|
| 78 |
|
---|
| 79 | <sect3 role="installation">
|
---|
| 80 | <title>Installation of Py3c</title>
|
---|
| 81 |
|
---|
| 82 | <para>
|
---|
[59d70fc] | 83 | The <application>Py3c</application> package is a headers-only package
|
---|
[3aee187] | 84 | and because of that, no configuration and compilation is
|
---|
| 85 | required.
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <para>
|
---|
[141ee0a5] | 89 | To test the package, issue:
|
---|
[3aee187] | 90 | </para>
|
---|
| 91 |
|
---|
[141ee0a5] | 92 | <screen remap="test"><userinput>make test-python3 &&
|
---|
| 93 | make test-python3-cpp</userinput></screen>
|
---|
| 94 |
|
---|
[3aee187] | 95 | <para>
|
---|
| 96 | To install the <application>Python 3</application> module,
|
---|
| 97 | run the following command as the
|
---|
| 98 | <systemitem class="username">root</systemitem> user:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <!-- Note:
|
---|
[141ee0a5] | 102 | Now, doing a DESTDIR install is just
|
---|
| 103 | "make prefix=/usr DESTDIR=<dest> install"
|
---|
[3aee187] | 104 | -->
|
---|
| 105 | <screen role="root"><userinput>make prefix=/usr install</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | </sect3>
|
---|
| 108 |
|
---|
| 109 | <sect3 role="content">
|
---|
| 110 | <title>Contents</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
| 113 | <segtitle>Installed Programs</segtitle>
|
---|
| 114 | <segtitle>Installed Libraries</segtitle>
|
---|
| 115 | <segtitle>Installed Directories</segtitle>
|
---|
| 116 |
|
---|
| 117 | <seglistitem>
|
---|
| 118 | <seg>
|
---|
| 119 | None
|
---|
| 120 | </seg>
|
---|
| 121 | <seg>
|
---|
| 122 | None
|
---|
| 123 | </seg>
|
---|
| 124 | <seg>
|
---|
| 125 | /usr/include/py3c
|
---|
| 126 | </seg>
|
---|
| 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
| 130 | </sect3>
|
---|
| 131 |
|
---|
| 132 | </sect2>
|
---|