diff options
Diffstat (limited to 'chapter08/meson.xml')
-rw-r--r-- | chapter08/meson.xml | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/chapter08/meson.xml b/chapter08/meson.xml index ffd4153b0..91b4b61bc 100644 --- a/chapter08/meson.xml +++ b/chapter08/meson.xml @@ -54,14 +54,13 @@ --> <para>Compile Meson with the following command:</para> -<screen><userinput remap="make">python3 setup.py build</userinput></screen> +<screen><userinput remap="make">pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> <para>The test suite requires some packages out of the scope of LFS.</para> <para>Install the package:</para> -<screen><userinput remap="install">python3 setup.py install --root=dest -cp -rv dest/* / +<screen><userinput remap="install">pip3 install --no-index --find-links dist meson install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson</userinput></screen> @@ -69,14 +68,16 @@ install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/ <title>The meaning of the install parameters:</title> <varlistentry> - <term><parameter>--root=dest</parameter></term> + <term><parameter>-w dist</parameter></term> <listitem> - <para>By default <command>python3 setup.py install</command> - installs various files (such as man pages) into Python Eggs. - With a specified root location, <command>setup.py</command> installs - these files into a standard hierarchy. Then the hierarchy - can just be copied to the standard location. - </para> + <para>Put the created wheels into the `dist` directory.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter>--find-links dist</parameter></term> + <listitem> + <para>Install wheels from the 'dist' directory.</para> </listitem> </varlistentry> @@ -92,10 +93,10 @@ install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/ <seglistitem> <seg>meson</seg> - <!-- We are using DESTDIR installation here, so the directory layout - is different than other Python modules in LFS - (Jinja2 & MarkupSafe). --> - <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> + <seg> + /usr/lib/python&python-minor;/site-packages/meson-&meson-version;.dist-info and + /usr/lib/python&python-minor;/site-packages/mesonbuild + </seg> </seglistitem> </segmentedlist> |