I have a long-running Python app which scans many megabytes of files in a loop every few minutes. Over the course of a day I see that it gobbles up gigybates of memory, and in the end I have to kill and re-start it. Of course I'm suspecting a C extension I have built myself.
When I run the app under valgrind, though, it shows no leaks (except for some big number in "possibly lost", but the "naked" Python interpreter does that as well).
I've downloaded and compiled a debugging-enabled version of Python-3.6.8 and installed it in a virtualenv but I can't for the life of me figure out how to run setup.py on my extension with debugging enabled, let alone how to install all the other packages I need to run the full application.