The compileall module (since Python 3.9) and the comileall2 module allows to save some disk space by hardlinking identical bytecode files from different optimization levels when the --hardlink-dupes flag is used. Context: https://discuss.python.org/t/compileall-option-to-hardlink-duplicate-optimization-levels-bytecode-cache-files/3014 We should actually use that flag, since we created it :) There is also brp-python-hardlink which achieves the same thing but it needlessly makes all builds a bit slower. Once we start using --hardlink-dupes in brp-python-bytecompile and %py_byte_compile, we might consider dropping brp-python-hardlink (or at least disabling it by default and only calling it on demand for our older Python interpreter packages).
PR: https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/111
FEDORA-2021-999f9780bd has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-999f9780bd
FEDORA-2021-999f9780bd has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.