Ignore:
Timestamp:
04/01/2023 01:06:22 PM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
7a570bd
Parents:
6bced9f (diff), fd531b84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/wheel.xml

    r6bced9f r39d9ed8  
    4343    <para>Compile Wheel with the following command:</para>
    4444
    45 <screen><userinput remap="make">PYTHONPATH=src pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     45<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
    4646
    4747    <para>Install Wheel with the following command:</para>
     
    4949<screen><userinput remap="install">pip3 install --no-index --find-links=dist wheel</userinput></screen>
    5050
    51     <variablelist>
    52       <title>The meaning of the pip3 configuration options and commands:</title>
    53 
    54       <varlistentry>
    55         <term><envar>PYTHONPATH=src</envar></term>
    56         <listitem>
    57            <para>Allows this package (not installed yet) to build a
    58            wheel archive for itself, to avoid a chicken-or-egg problem.</para>
    59         </listitem>
    60       </varlistentry>
    61 
    62       <varlistentry>
    63         <term><command>wheel</command></term>
    64         <listitem>
    65            <para>This command builds the wheel archive for this package.</para>
    66         </listitem>
    67       </varlistentry>
    68 
    69       <varlistentry>
    70         <term><parameter>-w dist</parameter></term>
    71         <listitem>
    72            <para>Instructs pip to put the created wheel into the
    73            <filename class='directory'>dist</filename> directory.</para>
    74         </listitem>
    75       </varlistentry>
    76 
    77       <varlistentry>
    78         <term><command>install</command></term>
    79         <listitem>
    80            <para>This command installs the package.</para>
    81         </listitem>
    82       </varlistentry>
    83 
    84       <varlistentry>
    85         <term><parameter>--no-build-isolation</parameter>,
    86               <parameter>--no-deps</parameter>, and
    87               <parameter>--no-index</parameter></term>
    88         <listitem>
    89           <para>These options prevent fetching files from the online package
    90           repository (PyPI). If packages are installed in the correct order,
    91           pip won't need to fetch any files in the first place; these
    92           options add some safety in case of user error.</para>
    93         </listitem>
    94       </varlistentry>
    95 
    96       <varlistentry>
    97         <term><parameter>--find-links dist</parameter></term>
    98         <listitem>
    99            <para>Instructs pip to search for wheel archives in the
    100            <filename class='directory'>dist</filename> directory.</para>
    101         </listitem>
    102       </varlistentry>
    103     </variablelist>
    10451  </sect2>
    10552
Note: See TracChangeset for help on using the changeset viewer.