[英]How do I let pip to know to remove the systemd service file
In my python package I offer the user to run as a service and then install a.service file.在我的 python package 中,我让用户作为服务运行,然后安装 a.service 文件。
Is there a way to let pip know to remove it if the package is uninstalled?如果 package 被卸载,有没有办法让 pip 知道将其删除?
Thank you谢谢
pip
is not a full blown package manager, even less system package manager. pip
不是一个成熟的 package 管理器,更不用说系统 package 管理器。 It doesn't support post-install or pre-uninstall scripts.它不支持安装后或卸载前脚本。
The 2 solutions for your problems are:您的问题的2个解决方案是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.