Skip to content

Commit 2aac893

Browse files
committed
update doc
1 parent f32ed4f commit 2aac893

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

CHANGELOG.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Unreleased
1515
==========
1616

1717
- Add support for including PEP 770 SBOMs and other dist-info-bound metadata
18-
files in the wheel. Files installed to ``<name>-<version>.dist-info/<subdir>/``
19-
under ``{py_purelib}`` or ``{py_platlib}`` are routed into the wheel's
20-
``.dist-info/<subdir>/`` at pack time.
18+
files in the wheel. Files installed to
19+
``py.get_install_dir() / <name>-<version>.dist-info / <subdir>`` are
20+
routed into the wheel's ``.dist-info/<subdir>/`` at pack time.
2121

2222

2323
0.19.0

docs/how-to-guides/sboms.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ Including SBOMs in wheels (PEP 770)
1010

1111
`PEP 770`_ defines a location for Software Bill of Materials (SBOM)
1212
files inside the wheel's ``.dist-info/sboms/`` directory.
13-
``meson-python`` routes any file installed under
14-
``{py_purelib}/<name>-<version>.dist-info/<subdir>/...`` or
15-
``{py_platlib}/<name>-<version>.dist-info/<subdir>/...`` into the
16-
wheel's own ``.dist-info/<subdir>/`` at pack time, giving projects a
17-
way to ship SBOMs and other dist-info-bound metadata files without
13+
``meson-python`` routes any file installed to
14+
``py.get_install_dir() / <name>-<version>.dist-info / <subdir>`` into
15+
the wheel's own ``.dist-info/<subdir>/`` at pack time, giving projects
16+
a way to ship SBOMs and other dist-info-bound metadata files without
1817
post-build wheel surgery.
1918

2019
.. _PEP 770: https://peps.python.org/pep-0770/
@@ -40,9 +39,7 @@ source-vendored components:
4039
4140
The files end up in the wheel at
4241
``my_project-1.0.0.dist-info/sboms/component1.cdx.json`` and
43-
``component2.cdx.json``. ``py.get_install_dir()`` returns a path under
44-
``{py_purelib}`` for ``pure: true`` projects and ``{py_platlib}`` for
45-
``pure: false`` projects; both roots are recognized.
42+
``component2.cdx.json``.
4643

4744
Dynamically generated SBOMs
4845
===========================

0 commit comments

Comments
 (0)