diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-09-03 00:45:13 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-09-03 00:48:20 +0800 |
commit | 1b807632f6f1aa8a67680b34bac95b300952e624 (patch) | |
tree | 6fe14d2787b481592918bbcc988bf2d1ccf2c77e | |
parent | 3864d235cfd3623f6a4765d9acd13caee62c6629 (diff) |
Add --no-cache-dir into pip3 wheel commands for Python modules
-rw-r--r-- | chapter01/changelog.xml | 5 | ||||
-rw-r--r-- | chapter08/flit-core.xml | 11 | ||||
-rw-r--r-- | chapter08/jinja2.xml | 2 | ||||
-rw-r--r-- | chapter08/markupsafe.xml | 2 | ||||
-rw-r--r-- | chapter08/meson.xml | 2 | ||||
-rw-r--r-- | chapter08/wheel.xml | 2 | ||||
-rw-r--r-- | general.ent | 1 |
7 files changed, 20 insertions, 5 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d7e9c544f..e5ff7b4b8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -44,6 +44,11 @@ <para>2023-09-02</para> <itemizedlist> <listitem> + <para>[xry111] - Add --no-cache-dir option for pip3 wheel + commands. Addresses + <ulink url='&blfs-ticket-root;18466'>BLFS #18466</ulink>.</para> + </listitem> + <listitem> <para>[bdubbs] - Update to vim-1837. Addresses <ulink url='&lfs-ticket-root;4500'>#4500</ulink>.</para> </listitem> 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> diff --git a/general.ent b/general.ent index a222812e9..0540ac6c2 100644 --- a/general.ent +++ b/general.ent @@ -103,6 +103,7 @@ <!ENTITY erratad "&lfs-root;lfs/errata/&generic-versiond;/"> --> <!ENTITY lfs-ticket-root "https://wiki.linuxfromscratch.org/lfs/ticket/"> +<!ENTITY blfs-ticket-root "https://wiki.linuxfromscratch.org/blfs/ticket/"> <!ENTITY anduin-sources "https://anduin.linuxfromscratch.org/LFS"> |