Replies: 1 comment 2 replies
-
Setuptools does not run on uninstall so there is not much we can do about it in this repo. (To be honest, I don't think this functionality is currently implemented somewhere in the ecosystem) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to find a solution for this issue: moi15moi/FontCollector#50
With Pickle, FontCollector serialize and save objects into files. Those acts like a cache.
The file is saved in the directory that gettempdir return.
But, when the user uninstall my package, those cache files aren't deleted.
In
pyproject.toml
, is there a way to say to call some function (in my case, it would be FontLoader.discard_system_font_cache() and FontLoader.discard_generated_font_cache()) or to specify a file to delete when he try to uninstall my package withpip uninstall MY_PACKAGE_NAME
?I'm not sure if it is the right place to ask. If it isn't sorry.
Beta Was this translation helpful? Give feedback.
All reactions