debian - Will it be practical to implement deb preinst, postint, etc. scripts in Python, not in sh -
i'm interested in pitfalls can (except python not installed in target system) when using python deb package flow control scripts (preinst, postinst, etc.). practical implement scripts in python, not in sh?
as understand it's @ least possible.
the reason isn't commonly done, afaik, it's not convention, , python isn't more useful or straightforward plain shell script sorts of things maintainer scripts do. when more useful, can break out python-needing functionality separate python script called maintainer scripts.
it can follow convention in sort of situation, since there lot of helpful tools , scripts (e.g., lintian, debhelper) assume maintainer scripts use bash. if don't, it's ok, tools may not useful otherwise. other issue think need aware of if preinst
or postrm
scripts need python, python needs pre-dependency (pre-depends
) of package instead of depends
.
that said, i've found useful use python in maintainer script before.
Comments
Post a Comment