Changeset e3187f4
- Timestamp:
- 11/22/2022 10:24:26 AM (17 months ago)
- Branches:
- 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
- Children:
- 26e3001
- Parents:
- e354e58
- git-author:
- Xi Ruoyao <xry111@…> (11/22/2022 08:56:41 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (11/22/2022 10:24:26 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/wheel.xml
re354e58 re3187f4 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- 0.37.1-py3.10.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.