[issue12416] packaging does not have hooks callable during distribution removal

Éric Araujo report at bugs.python.org
Mon Jun 27 16:06:13 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

I have no objection, but you may want to ask on the fellowship ML first.

Should the hooks be run before the removal or just after?  (Debian for example has both, which makes four hooks: preinst, postinst, prerm, postrm).  Our setup_hooks (used with pysetup commands) are run right after the setup.cfg file is parsed, before any operation is started.

Regarding implementation: The hook should be defined in the global section of setup.cfg; upon installation, packaging would write this info into the dist-info directory (say in an UNINSTALLHOOKS file), which would be read when preparing an uninstallation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12416>
_______________________________________


More information about the Python-bugs-list mailing list