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 |
|
---|
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 " ">
|
---|
9 | <!ENTITY flit_core-md5sum "&flit_core-md5sum;">
|
---|
10 | <!ENTITY flit_core-size "40 KB">
|
---|
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)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect2 id="flit_core" xreflabel="flit_core-&flit_core-version;">
|
---|
16 |
|
---|
17 | <title>Flit_core-&flit_core-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="flit_core">
|
---|
20 | <primary sortas="a-flit_core">flit_core</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect3 role="package">
|
---|
24 | <title>Introduction to Flit_core Module</title>
|
---|
25 |
|
---|
26 | <para>
|
---|
27 | The <application>Flit_core</application> module is the key component
|
---|
28 | of the <application>Flit</application> system, which provides a
|
---|
29 | simple way to put Python packages and modules on PyPi.
|
---|
30 | </para>
|
---|
31 |
|
---|
32 | &lfs113_checked;
|
---|
33 |
|
---|
34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
35 | <itemizedlist spacing="compact">
|
---|
36 | <listitem>
|
---|
37 | <para>
|
---|
38 | Download (HTTP): <ulink url="&flit_core-download-http;"/>
|
---|
39 | </para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (FTP): <ulink url="&flit_core-download-ftp;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download MD5 sum: &flit_core-md5sum;
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download size: &flit_core-size;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Estimated disk space required: &flit_core-buildsize;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated build time: &flit_core-time;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
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 |
|
---|
76 | </sect3>
|
---|
77 |
|
---|
78 | <sect3 role="installation">
|
---|
79 | <title>Installation of Flit_core</title>
|
---|
80 |
|
---|
81 | <para>
|
---|
82 | Build the module:
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
---|
86 |
|
---|
87 | <para>
|
---|
88 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user flit_core</userinput></screen>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Assuming <xref linkend="pytest"/> is installed, but the other optional
|
---|
95 | dependency is not, the installation can be tested with the following
|
---|
96 | commands:
|
---|
97 | </para>
|
---|
98 |
|
---|
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>
|
---|
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
|
---|
123 | /usr/lib/python&python3-majorver;/site-packages/flit_core-&flit_core-version;.dist-info
|
---|
124 | </seg>
|
---|
125 | </seglistitem>
|
---|
126 | </segmentedlist>
|
---|
127 |
|
---|
128 | </sect3>
|
---|
129 |
|
---|
130 | </sect2>
|
---|