aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
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
parent3864d235cfd3623f6a4765d9acd13caee62c6629 (diff)
Add --no-cache-dir into pip3 wheel commands for Python modules
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/flit-core.xml11
-rw-r--r--chapter08/jinja2.xml2
-rw-r--r--chapter08/markupsafe.xml2
-rw-r--r--chapter08/meson.xml2
-rw-r--r--chapter08/wheel.xml2
5 files changed, 14 insertions, 5 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>
diff --git a/chapter08/jinja2.xml b/chapter08/jinja2.xml
index ca614ecdc..59a01e26c 100644
--- a/chapter08/jinja2.xml
+++ b/chapter08/jinja2.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>
diff --git a/chapter08/markupsafe.xml b/chapter08/markupsafe.xml
index b4a0cbc58..c09b9a64c 100644
--- a/chapter08/markupsafe.xml
+++ b/chapter08/markupsafe.xml
@@ -42,7 +42,7 @@
<para>Compile MarkupSafe with the following command:</para>
-<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
+<screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
<para>This package does not come with a test suite.</para>
diff --git a/chapter08/meson.xml b/chapter08/meson.xml
index a53a88c3c..8cf308237 100644
--- a/chapter08/meson.xml
+++ b/chapter08/meson.xml
@@ -46,7 +46,7 @@
-->
<para>Compile Meson with the following command:</para>
-<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
+<screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
<para>The test suite requires some packages outside the scope of LFS.</para>
diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml
index 88e47d556..0f3a1c99e 100644
--- a/chapter08/wheel.xml
+++ b/chapter08/wheel.xml
@@ -42,7 +42,7 @@
<para>Compile Wheel with the following command:</para>
-<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
+<screen><userinput remap="make">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
<para>Install Wheel with the following command:</para>