`pip uninstall` misses gui_script entry point shims
Thursday, October 05, 2017
pip 9.0.1 from C:\apps\win-python-2.7-x64\python-2.7.10.amd64\lib\site-packages (python 2.7)
B:\apps\leo-editor>pip uninstall leo
Uninstalling leo-5.6:
c:\apps\win-python-2.7-x64\python-2.7.10.amd64\lib\site-packages\leo.egg-link
c:\apps\win-python-2.7-x64\python-2.7.10.amd64\scripts\leoc-script.py
c:\apps\win-python-2.7-x64\python-2.7.10.amd64\scripts\leoc.exe
Proceed (y/n)? y
Successfully uninstalled leo-5.6
B:\apps\leo-editor>del C:\apps\win-python-2.7-x64\python-2.7.10.amd64\Scripts\leow.exe
-------
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 https://stackoverflow.com/questions/57311988/where-is-pips-list-of-files-to-remove-for-a-package/
Typical install scenario:
git clone {application}
pip install --editable path/to/app-code
python user-scripts/make-menu-shortcuts.py
From <https://discuss.python.org/t/how-to-add-to-list-of-files-to-uninstall/2069>