blob: 419efc30f551b4b2b41e266b2886d9fc86341a05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<?xml version="1.0" encoding="UTF-8"?>
<!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;
]>
<sect1 id="ch-system-flit-core" role="wrap">
<?dbhtml filename="flit-core.html"?>
<sect1info condition="script">
<productname>flit-core</productname>
<productnumber>&flit-core-version;</productnumber>
<address>&flit-core-url;</address>
</sect1info>
<title>Flit-Core-&flit-core-version;</title>
<indexterm zone="ch-system-flit-core">
<primary sortas="a-flit-core">Flit-core</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Flit-core is the distribution-building parts of Flit (a packaging
tool for simple Python modules).</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&flit-core-fin-sbu;</seg>
<seg>&flit-core-fin-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Flit-Core</title>
<para>Build the package:</para>
<screen><userinput remap="install">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">pip3 install --no-index --no-user --find-links dist flit_core</userinput></screen>
<variablelist>
<title>The meaning of the pip3 configuration options and commands:</title>
<varlistentry>
<term><command>wheel</command></term>
<listitem>
<para>This command builds the wheel archive for this package.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>-w dist</parameter></term>
<listitem>
<para>Instructs pip to put the created wheel into the
<filename class='directory'>dist</filename> directory.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--no-cache-dir</parameter></term>
<listitem>
<para>Prevents pip from copying the created wheel into the
<filename class='directory'>/root/.cache/pip</filename>
directory.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>install</command></term>
<listitem>
<para>This command installs the package.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--no-build-isolation</parameter>,
<parameter>--no-deps</parameter>, and
<parameter>--no-index</parameter></term>
<listitem>
<para>These options prevent fetching files from the online package
repository (PyPI). If packages are installed in the correct order,
pip won't need to fetch any files in the first place; these
options add some safety in case of user error.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--find-links dist</parameter></term>
<listitem>
<para>Instructs pip to search for wheel archives in the
<filename class='directory'>dist</filename> directory.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="contents-flit-core" role="content">
<title>Contents of Flit-Core</title>
<segmentedlist>
<segtitle>Installed directory</segtitle>
<seglistitem>
<seg>
/usr/lib/python&python-minor;/site-packages/flit_core and
/usr/lib/python&python-minor;/site-packages/flit_core-&flit-core-version;.dist-info
</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>
|