How to run a script when a user uninstalls my package using pip?

My setup.py adds an entry to the crontab user during installation. I want to delete this entry if the user removes the package. From what I saw, this seems impossible. Hope someone has a solution.

+4
source share
1 answer

This is not currently possible, see uninstalling python setup.py

However, there is this function request for its implementation https://github.com/pypa/pip/issues/857 , which is over 1.5 years old and without any comments on it.

, . , , .

+1

Source: https://habr.com/ru/post/1615633/


All Articles