source: chapter08/flit-core.xml@ e8e771a

multilib
Last change on this file since e8e771a was fd531b84, checked in by Xi Ruoyao <xry111@…>, 14 months ago

flit-core: Kill revision='systemd'

I copied from jinja2 and edited the file, but forgot to remove this.

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