The packages are built using the dependencies versions available in the OS, to my knowledge, there is no custom package installed from external libraries. If there is Python 3.9, then that is going to be used when packages are built.
@sergey-safarov - if you see something to fix here for rpm building, reopen.