Skip to content

Commit e0af09b

Browse files
hroncokchurchyard
authored andcommitted
Inject SBOM into the installed wheels (when using the bundled ones)
1 parent 6d982d0 commit e0af09b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python3.14.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,11 @@ for file in %{buildroot}%{pylibdir}/pydoc_data/topics.py $(grep --include='*.py'
13931393
rm ${directory}/{__pycache__/${module}.cpython-%{pyshortver}.opt-?.pyc,${module}.py}
13941394
done
13951395

1396+
%if %{without rpmwheels}
1397+
# Inject SBOM into the installed wheels (if the macro is available)
1398+
%{?python_wheel_inject_sbom:%python_wheel_inject_sbom %{buildroot}%{pylibdir}/ensurepip/_bundled/*.whl}
1399+
%endif
1400+
13961401
# ======================================================
13971402
# Checks for packaging issues
13981403
# ======================================================

0 commit comments

Comments
 (0)