I usually redirect the output to a file python3 setup.py bdist_wheel > log.txt 2>&1 or so and then use grep somesource.c log.txt to find the source line. It’ll be long, but it will be precise. 
Well, you have a solution that works for you, that is the important bit.