diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-03-31 22:26:06 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-03-31 22:26:06 +0800 |
commit | 0e3eb0bee49e5e5eab7e1bff7721197bb55bb97a (patch) | |
tree | 0e448ddd09840adee42394f12ed211b2d98485aa /chapter08/wheel.xml | |
parent | af612e9a199b621382a46377104a538e8c89b210 (diff) |
wheel: Remove magic PYTHONPATH=src (unneeded with flit-core) and ...
duplicated pip3 explanation (already in flit-core page).
Diffstat (limited to 'chapter08/wheel.xml')
-rw-r--r-- | chapter08/wheel.xml | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index 57457dacc..88e47d556 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -42,65 +42,12 @@ <para>Compile Wheel with the following command:</para> -<screen><userinput remap="make">PYTHONPATH=src pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> +<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> <para>Install Wheel with the following command:</para> <screen><userinput remap="install">pip3 install --no-index --find-links=dist wheel</userinput></screen> - <variablelist> - <title>The meaning of the pip3 configuration options and commands:</title> - - <varlistentry> - <term><envar>PYTHONPATH=src</envar></term> - <listitem> - <para>Allows this package (not installed yet) to build a - wheel archive for itself, to avoid a chicken-or-egg problem.</para> - </listitem> - </varlistentry> - - <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><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-wheel" role="content"> |