Changeset 9237700 for chapter08/wheel.xml
- Timestamp:
- 11/23/2022 10:50:34 AM (17 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/wheel.xml
r777f469 r9237700 41 41 <title>Installation of Wheel</title> 42 42 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 43 47 <para>Install wheel with the following command:</para> 44 48 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> 46 50 47 51 <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> 49 76 50 77 <varlistentry> … … 56 83 57 84 <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> 59 88 <listitem> 60 89 <para>Prevent pip from fetching files from the online package 61 90 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 th is63 option addssome 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> 64 93 </listitem> 65 94 </varlistentry> 66 95 67 96 <varlistentry> 68 <term><parameter> $PWD</parameter></term>97 <term><parameter>--find-links dist</parameter></term> 69 98 <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> 71 101 </listitem> 72 102 </varlistentry> 73 74 103 </variablelist> 75 76 104 </sect2> 77 105 … … 87 115 <seg> 88 116 /usr/lib/python&python-minor;/site-packages/wheel and 89 /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version; -py&python-minor;.egg-info117 /usr/lib/python&python-minor;/site-packages/wheel-&wheel-version;.dist-info 90 118 </seg> 91 119 </seglistitem>
Note:
See TracChangeset
for help on using the changeset viewer.