How to add to list of files to uninstall

I have an application package which is installed from pip, often in editable mode. For convenience after install there are user scripts to add desktop and menu shortcuts. How do I tell pip and other package managers about these extra files so they can be automatically removed when uninstalled?

I’ve found the *.dist-info/RECORD file, but that seems to be only created for packages installed from wheels(?).

Another version of this Q at

Typical install scenario:

git clone {application}
pip install --editable path/to/app-code
python user-scripts/