Fedora does all the changes in cpython with a patch. I'm testing this patch with our python311 [1] package and it requires also a change in python-rpm-macros [2]. [1] https://build.opensuse.org/projects/home:dgarcia:usr-local-cpython/packages/python311/files/F00251-change-user-install-location.patch?expand=1 [2] https://github.com/openSUSE/python-rpm-macros/commit/6a2a3e37ecbd86c53662408a3448c56c86de8662