Changeset 22f5a1a
- Timestamp:
- 11/10/2022 05:31:54 PM (18 months ago)
- Branches:
- xry111/pip3
- Children:
- 3600fdc
- Parents:
- 799c424
- git-author:
- Xi Ruoyao <xry111@…> (11/10/2022 04:36:33 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (11/10/2022 05:31:54 PM)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/wheel.xml
r799c424 r22f5a1a 41 41 <title>Installation of Wheel</title> 42 42 43 <para>The installation of wheel needs pip and setuptools. 44 Prepare the temporary copies of them:</para> 45 46 <screen><userinput remap="pre">tar xf ../pip-&pip-version;.tar.gz 47 tar xf ../setuptools-&setuptools-version;.tar.gz</userinput></screen> 48 49 <para>Build the wheel package. The building process needs pip, 50 setuptools, and wheel itself, set <envar>PYTHONPATH</envar> so 51 <command>python3</command> will be able to find them:</para> 52 53 <screen><userinput remap="make">PYTHONPATH=pip-&pip-version;/src:setuptools-&setuptools-version;:src \ 54 python3 -m pip wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> 55 43 56 <para>Install wheel with the following command:</para> 44 57 45 <screen><userinput remap="install">pip3 install --no-index $PWD</userinput></screen> 58 <screen><userinput remap="install">PYTHONPATH=pip-&pip-version;/src:setuptools-&setuptools-version;:src \ 59 python3 -m pip install --no-index --find-links dist wheel --force-reinstall</userinput></screen> 46 60 47 61 <variablelist> 48 <title>The meaning of the pip3 options:</title>62 <title>The meaning of the install parameters:</title> 49 63 50 64 <varlistentry> 51 <term>< command>install</command></term>65 <term><parameter>-w dist</parameter></term> 52 66 <listitem> 53 <para>Install the package.</para> 67 <para>Put the created wheel into the 68 <filename class='directory'>dist</filename> directory.</para> 54 69 </listitem> 55 70 </varlistentry> 56 71 57 72 <varlistentry> 58 <term><parameter>-- no-index</parameter></term>73 <term><parameter>--find-links dist</parameter></term> 59 74 <listitem> 60 <para>Prevent pip from fetching files from the online package 61 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> 75 <para>Install wheel from the 76 <filename class='directory'>dist</filename> directory.</para> 64 77 </listitem> 65 78 </varlistentry> 66 79 67 80 <varlistentry> 68 <term><parameter> $PWD</parameter></term>81 <term><parameter>--force-reinstall</parameter></term> 69 82 <listitem> 70 <para>Look for files to install in the current working directory.</para> 83 <para>Install the package even if it can be found in 84 <envar>PYTHONPATH</envar>.</para> 71 85 </listitem> 72 86 </varlistentry> 73 87 74 88 </variablelist> 75 76 89 </sect2> 77 90 -
packages.ent
r799c424 r22f5a1a 603 603 <!ENTITY python-docs-size "7,484 KB"> 604 604 605 <!ENTITY pip-version "22.3.1"> 606 <!ENTITY pip-size "2,032 KB"> 607 <!ENTITY pip-url "&pypi-src;/p/pip/pip-&pip-version;.tar.gz"> 608 <!ENTITY pip-md5 "996f58a94fe0b8b82b6795c42bd171ba"> 609 <!ENTITY pip-home "&pypi-home;/pip/"> 610 605 611 <!ENTITY readline-version "8.2"> 606 612 <!ENTITY readline-soversion "8.2"><!-- used for stripping --> … … 621 627 <!ENTITY sed-fin-du "31 MB"> 622 628 <!ENTITY sed-fin-sbu "0.4 SBU"> 629 630 <!ENTITY setuptools-version "65.5.1"> 631 <!ENTITY setuptools-size "2,556 KB"> 632 <!ENTITY setuptools-url "&pypi-src;/s/setuptools/setuptools-&setuptools-version;.tar.gz"> 633 <!ENTITY setuptools-md5 "3f062858ddfb5efa564c9c02a30cb104"> 634 <!ENTITY setuptools-home "&pypi-home;/setuptools/"> 623 635 624 636 <!ENTITY shadow-version "4.12.3"> … … 734 746 <!ENTITY wheel-md5 "f490f1399e5903706cb1d4fbed9ecb28"> 735 747 <!ENTITY wheel-home "&pypi-home;/wheel/"> 736 <!ENTITY wheel-fin-du " 956KB">748 <!ENTITY wheel-fin-du "28,700 KB"> 737 749 <!ENTITY wheel-fin-sbu "less than 0.1 SBU"> 738 750
Note:
See TracChangeset
for help on using the changeset viewer.