With current python-setuptools, this logic in setup.py cannot really work, as explaiend in bug 2153037: if os.name == 'posix' and sys.platform != 'darwin': compiler = new_compiler() if compiler.has_function('timer_create', libraries=('rt', )): user_macros.append(('LIB_RT_AVAILABLE', '1')) user_libraries.append('rt') We can patch it out (define LIB_RT_AVAILABLE unconditionally), or hope for a generic fix in python-setuptools. Not sure yet.
Created attachment 1935991 [details] 0010-Unconditionally-set-LIB_RT_AVAILABLE-and-link-with-l.patch
I've worked around this in the package here because the proper fix for has_function has not happened.
Workaround dropped in python-yappi-1.3.6-4.fc39 because python3-setuptools has been fixed.