Ignore:
Timestamp:
11/23/2022 10:50:34 AM (17 months ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
multilib
Children:
43063fe
Parents:
777f469 (diff), f0cbef54 (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 branch 'multilib' of git.linuxfromscratch.org:lfs into multilib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/wheel.xml

    r777f469 r9237700  
    4141    <title>Installation of Wheel</title>
    4242
     43    <para>Compile wheel with the following command:</para>
     44
     45<screen><userinput remap="make">PYTHONPATH=src pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     46
    4347    <para>Install wheel with the following command:</para>
    4448
    45 <screen><userinput remap="install">pip3 install --no-index $PWD</userinput></screen>
     49<screen><userinput remap="install">pip3 install --no-index --find-links=dist wheel</userinput></screen>
    4650
    4751    <variablelist>
    48       <title>The meaning of the pip3 options:</title>
     52      <title>The meaning of the pip3 commands:</title>
     53
     54      <varlistentry>
     55        <term><envar>PYTHONPATH=src</envar></term>
     56        <listitem>
     57           <para>Allow using 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>Build wheel archive for this package.</para>
     66        </listitem>
     67      </varlistentry>
     68
     69      <varlistentry>
     70        <term><parameter>-w dist</parameter></term>
     71        <listitem>
     72           <para>Put the created wheels into the
     73           <filename class='directory'>dist</filename> directory.</para>
     74        </listitem>
     75      </varlistentry>
    4976
    5077      <varlistentry>
     
    5683
    5784      <varlistentry>
    58         <term><parameter>--no-index</parameter></term>
     85        <term><parameter>--no-build-isolation</parameter>,
     86              <parameter>--no-deps</parameter>, and
     87              <parameter>--no-index</parameter></term>
    5988        <listitem>
    6089          <para>Prevent pip from fetching files from the online package
    6190          repository (PyPI). If packages are installed in the correct order,
    62           then it won't need to fetch any files in the first place, but this
    63           option adds some safety in case of user error.</para>
     91          then it won't need to fetch any files in the first place, but these
     92          options add some safety in case of user error.</para>
    6493        </listitem>
    6594      </varlistentry>
    6695
    6796      <varlistentry>
    68         <term><parameter>$PWD</parameter></term>
     97        <term><parameter>--find-links dist</parameter></term>
    6998        <listitem>
    70            <para>Look for files to install in the current working directory.</para>
     99           <para>Search wheel archives from the
     100           <filename class='directory'>dist</filename> directory.</para>
    71101        </listitem>
    72102      </varlistentry>
    73 
    74103    </variablelist>
    75 
    76104  </sect2>
    77105
     
    87115        <seg>
    88116           /usr/lib/python&python-minor;/site-packages/wheel and
    89            /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version;-py&python-minor;.egg-info
     117           /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version;.dist-info
    90118        </seg>
    91119      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.