- Timestamp:
- 04/19/2022 03:45:10 AM (2 years ago)
- Branches:
- multilib, xry111/multilib
- Children:
- 20d3801
- Parents:
- 644d5e0 (diff), 18e99c8 (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. - Location:
- chapter08
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/jinja2.xml
r644d5e0 rcd77c31 41 41 <title>Installation of Jinja2</title> 42 42 43 <para>Build the package:</para> 44 45 <screen><userinput remap="install">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> 46 43 47 <para>Install the package:</para> 44 48 45 <screen><userinput remap="install">p ython3 setup.py install --optimize=1</userinput></screen>49 <screen><userinput remap="install">pip3 install --no-index --find-links dist Jinja2</userinput></screen> 46 50 47 51 </sect2> … … 51 55 52 56 <segmentedlist> 53 <segtitle>Installed director ies</segtitle>57 <segtitle>Installed directory</segtitle> 54 58 55 59 <seglistitem> 56 <seg>/usr/lib/python&python-minor;/site-packages/Jinja2-&jinja2-version;-py&python-minor;.egg</seg> 60 <seg> 61 /usr/lib/python&python-minor;/site-packages/Jinja2-&jinja2-version;.dist-info 62 </seg> 57 63 </seglistitem> 58 64 </segmentedlist> -
chapter08/markupsafe.xml
r644d5e0 rcd77c31 43 43 <para>Compile MarkupSafe with the following command:</para> 44 44 45 <screen><userinput remap="make">p ython3 setup.py build</userinput></screen>45 <screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> 46 46 47 47 <para>This package does not come with a test suite.</para> … … 49 49 <para>Install the package:</para> 50 50 51 <screen><userinput remap="install">p ython3 setup.py install --optimize=1</userinput></screen>51 <screen><userinput remap="install">pip3 install --no-index --find-links dist Markupsafe</userinput></screen> 52 52 53 53 </sect2> … … 60 60 61 61 <seglistitem> 62 <!-- Suffix "-linux-<arch>" is different from meson and jinja: 63 This package contains binary code (compiled from C), but meson 64 and jinja only contain Python code. --> 65 <seg>/usr/lib/python&python-minor;/site-packages/MarkupSafe-&markupsafe-version;-py&python-minor;-linux-<replaceable><arch></replaceable>.egg</seg> 62 <seg> 63 /usr/lib/python&python-minor;/site-packages/MarkupSafe-&markupsafe-version;.dist-info 64 </seg> 66 65 </seglistitem> 67 66 </segmentedlist> -
chapter08/meson.xml
r644d5e0 rcd77c31 55 55 <para>Compile Meson with the following command:</para> 56 56 57 <screen><userinput remap="make">p ython3 setup.py build</userinput></screen>57 <screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> 58 58 59 59 <para>The test suite requires some packages out of the scope of LFS.</para> … … 61 61 <para>Install the package:</para> 62 62 63 <screen><userinput remap="install">python3 setup.py install --root=dest 64 cp -rv dest/* / 63 <screen><userinput remap="install">pip3 install --no-index --find-links dist meson 65 64 install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson 66 65 install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson</userinput></screen> … … 70 69 71 70 <varlistentry> 72 <term><parameter>- -root=dest</parameter></term>71 <term><parameter>-w dist</parameter></term> 73 72 <listitem> 74 <para>By default <command>python3 setup.py install</command> 75 installs various files (such as man pages) into Python Eggs. 76 With a specified root location, <command>setup.py</command> installs 77 these files into a standard hierarchy. Then the hierarchy 78 can just be copied to the standard location. 79 </para> 73 <para>Put the created wheels into the 74 <filename class='directory'>dist</filename> directory.</para> 75 </listitem> 76 </varlistentry> 77 78 <varlistentry> 79 <term><parameter>--find-links dist</parameter></term> 80 <listitem> 81 <para>Install wheels from the 82 <filename class='directory'>dist</filename> directory.</para> 80 83 </listitem> 81 84 </varlistentry> … … 93 96 <seglistitem> 94 97 <seg>meson</seg> 95 < !-- We are using DESTDIR installation here, so the directory layout96 is different than other Python modules in LFS97 (Jinja2 & MarkupSafe). -->98 < seg>/usr/lib/python&python-minor;/site-packages/meson-&meson-version;-py&python-minor;.egg-info and /usr/lib/python&python-minor;/site-packages/mesonbuild</seg>98 <seg> 99 /usr/lib/python&python-minor;/site-packages/meson-&meson-version;.dist-info and 100 /usr/lib/python&python-minor;/site-packages/mesonbuild 101 </seg> 99 102 </seglistitem> 100 103 </segmentedlist> -
chapter08/python.xml
r644d5e0 rcd77c31 94 94 95 95 <para>In serveral places we use the <command>pip3</command> command to 96 install Python 3 programs and modules for all users as root. This conflicts 97 with the Python developers recommendation to build packages in a virtual 98 environment as a regular user. To this end, a multi-line warning is 99 written when using <command>pip3</command> as the root user. If desired, 100 supress this warning by running the following command:</para> 96 install Python 3 programs and modules for all users as 97 <systemitem class='username'>root</systemitem>. This conflicts 98 with the Python developers recommendation to install packages into a 99 virtual environment or the home directory of a regular user (by running 100 <command>pip3</command> as this user). To this end, a multi-line warning 101 is written when using <command>pip3</command> as the 102 <systemitem class='username'>root</systemitem> user. The main reason 103 of this recommendation is for avoiding a conflict with the system 104 package manager (<command>dpkg</command> for example), but LFS does not 105 have a system-wide package manager so this is not a problem. If desired, 106 suppress this warning by running the following command:</para> 101 107 102 108 <screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\ return' \ -
chapter08/wheel.xml
r644d5e0 rcd77c31 15 15 </sect1info> 16 16 17 <title> wheel-&wheel-version;</title>17 <title>Wheel-&wheel-version;</title> 18 18 19 19 <indexterm zone="ch-system-wheel"> … … 24 24 <title/> 25 25 26 <para>Wheel is a Python library that i mplements the reference26 <para>Wheel is a Python library that is the reference 27 27 implementation of the Python wheel packaging standard.</para> 28 28 … … 51 51 <term><command>install</command></term> 52 52 <listitem> 53 <para>Install the package </para>53 <para>Install the package.</para> 54 54 </listitem> 55 55 </varlistentry> … … 80 80 81 81 <segmentedlist> 82 <segtitle>Installed module</segtitle>82 <segtitle>Installed program</segtitle> 83 83 <segtitle>Installed directory</segtitle> 84 84 85 85 <seglistitem> 86 <seg>wheel .py</seg>86 <seg>wheel</seg> 87 87 <seg>/usr/lib/python&python-minor;/site-packages/wheel</seg> 88 88 </seglistitem> 89 </segmentedlist> 89 90 90 </segmentedlist> 91 <variablelist> 92 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 93 <?dbfo list-presentation="list"?> 94 <?dbhtml list-presentation="table"?> 95 96 <varlistentry id="wheel-wheel"> 97 <term><command>wheel</command></term> 98 <listitem> 99 <para> 100 is an utility to unpack, pack, or convert wheel packages 101 </para> 102 <indexterm zone="ch-system-wheel"> 103 <primary sortas="b-wheel">wheel</primary> 104 </indexterm> 105 </listitem> 106 </varlistentry> 107 </variablelist> 91 108 92 109 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.