[b3e18015] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect2 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 |
|
---|
[301c411] | 7 | <!ENTITY flit_core-download-http "https://files.pythonhosted.org/packages/source/f/flit_core/flit_core-&flit_core-version;.tar.gz">
|
---|
| 8 | <!ENTITY flit_core-download-ftp " ">
|
---|
[569925c7] | 9 | <!ENTITY flit_core-md5sum "&flit_core-md5sum;">
|
---|
[8f65da99] | 10 | <!ENTITY flit_core-size "40 KB">
|
---|
[72c62e4] | 11 | <!ENTITY flit_core-buildsize "1.7 MB (add 25 MB for tests)">
|
---|
| 12 | <!ENTITY flit_core-time "less than 0.1 SBU (with tests)">
|
---|
[b3e18015] | 13 | ]>
|
---|
| 14 |
|
---|
[301c411] | 15 | <sect2 id="flit_core" xreflabel="flit_core-&flit_core-version;">
|
---|
[b3e18015] | 16 |
|
---|
[3d42149] | 17 | <title>Flit_core-&flit_core-version;</title>
|
---|
[b3e18015] | 18 |
|
---|
[301c411] | 19 | <indexterm zone="flit_core">
|
---|
| 20 | <primary sortas="a-flit_core">flit_core</primary>
|
---|
[b3e18015] | 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect3 role="package">
|
---|
[3d42149] | 24 | <title>Introduction to Flit_core Module</title>
|
---|
[b3e18015] | 25 |
|
---|
| 26 | <para>
|
---|
[3d42149] | 27 | The <application>Flit_core</application> module is the key component
|
---|
| 28 | of the <application>Flit</application> system, which provides a
|
---|
[b3e18015] | 29 | simple way to put Python packages and modules on PyPi.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[9c87711] | 32 | &lfs113_checked;
|
---|
[b3e18015] | 33 |
|
---|
| 34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
[301c411] | 38 | Download (HTTP): <ulink url="&flit_core-download-http;"/>
|
---|
[b3e18015] | 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
[301c411] | 43 | Download (FTP): <ulink url="&flit_core-download-ftp;"/>
|
---|
[b3e18015] | 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
[301c411] | 48 | Download MD5 sum: &flit_core-md5sum;
|
---|
[b3e18015] | 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
[301c411] | 53 | Download size: &flit_core-size;
|
---|
[b3e18015] | 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
[301c411] | 58 | Estimated disk space required: &flit_core-buildsize;
|
---|
[b3e18015] | 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
[301c411] | 63 | Estimated build time: &flit_core-time;
|
---|
[b3e18015] | 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
[ef6402e] | 68 | <bridgehead renderas="sect4">Flit_core Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
---|
| 71 | <para role="optional">
|
---|
| 72 | <xref linkend="pytest"/> and
|
---|
| 73 | <ulink url="https://pypi.org/project/testpath/">testpath</ulink>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
[b3e18015] | 76 | </sect3>
|
---|
| 77 |
|
---|
| 78 | <sect3 role="installation">
|
---|
[ef6402e] | 79 | <title>Installation of Flit_core</title>
|
---|
[b3e18015] | 80 |
|
---|
| 81 | <para>
|
---|
[301c411] | 82 | Build the module:
|
---|
[b3e18015] | 83 | </para>
|
---|
| 84 |
|
---|
[301c411] | 85 | <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
---|
[b3e18015] | 86 |
|
---|
| 87 | <para>
|
---|
[ef6402e] | 88 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[b3e18015] | 89 | </para>
|
---|
| 90 |
|
---|
[ef6402e] | 91 | <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user flit_core</userinput></screen>
|
---|
| 92 |
|
---|
[b3e18015] | 93 | <para>
|
---|
[ef6402e] | 94 | Assuming <xref linkend="pytest"/> is installed, but the other optional
|
---|
[3d42149] | 95 | dependency is not, the installation can be tested with the following
|
---|
[ef6402e] | 96 | commands:
|
---|
[b3e18015] | 97 | </para>
|
---|
| 98 |
|
---|
[ef6402e] | 99 | <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &&
|
---|
| 100 | source testenv/bin/activate &&
|
---|
| 101 | pip3 install testpath &&
|
---|
| 102 | python3 /usr/bin/pytest<!-- no && in case there is an error -->
|
---|
| 103 | deactivate</userinput></screen>
|
---|
[b3e18015] | 104 |
|
---|
| 105 | </sect3>
|
---|
| 106 |
|
---|
| 107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 108 | href="../../../xincludes/pip3-cmd-explain.xml"/>
|
---|
| 109 |
|
---|
| 110 | <sect3 role="content">
|
---|
| 111 | <title>Contents</title>
|
---|
| 112 |
|
---|
| 113 | <segmentedlist>
|
---|
| 114 | <segtitle>Installed Programs</segtitle>
|
---|
| 115 | <segtitle>Installed Libraries</segtitle>
|
---|
| 116 | <segtitle>Installed Directories</segtitle>
|
---|
| 117 |
|
---|
| 118 | <seglistitem>
|
---|
| 119 | <seg>None</seg>
|
---|
| 120 | <seg>None</seg>
|
---|
| 121 | <seg>
|
---|
| 122 | /usr/lib/python&python3-majorver;/site-packages/flit_core and
|
---|
[301c411] | 123 | /usr/lib/python&python3-majorver;/site-packages/flit_core-&flit_core-version;.dist-info
|
---|
[b3e18015] | 124 | </seg>
|
---|
| 125 | </seglistitem>
|
---|
| 126 | </segmentedlist>
|
---|
| 127 |
|
---|
| 128 | </sect3>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|