aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/flit-core.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-09-03 00:45:13 +0800
committerXi Ruoyao <xry111@xry111.site>2023-09-03 00:48:20 +0800
commit1b807632f6f1aa8a67680b34bac95b300952e624 (patch)
tree6fe14d2787b481592918bbcc988bf2d1ccf2c77e /chapter08/flit-core.xml
parent3864d235cfd3623f6a4765d9acd13caee62c6629 (diff)
Add --no-cache-dir into pip3 wheel commands for Python modules
Diffstat (limited to 'chapter08/flit-core.xml')
-rw-r--r--chapter08/flit-core.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/chapter08/flit-core.xml b/chapter08/flit-core.xml
index 641ff73b7..661a02684 100644
--- a/chapter08/flit-core.xml
+++ b/chapter08/flit-core.xml
@@ -42,7 +42,7 @@
<para>Build the package:</para>
-<screen><userinput remap="install">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
+<screen><userinput remap="install">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
<para>Install the package:</para>
@@ -67,6 +67,15 @@
</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>