Open legoktm opened 1 year ago
To clarify, there is no actual problem caused by this, it's just messy and an unintentional consequence of having the postinst generate the __pycache__
folders.
Looking at what dh-python does, we need a prerm script that runs py3clean; see https://salsa.debian.org/python-team/tools/dh-python/-/blob/master/autoscripts/prerm-py3clean
So the flow ends up being:
[Backlog pruning, 5/15] Removing this from 2.6.0, it's not important enough.
Description
When upgrading from 2.5.1 to 2.6.0~rc1 (current develop), dpkg emits warnings that it can't remove the passlib directories because of the
__pycache__
directories.Steps to Reproduce
make build-debs
on developExpected Behavior
No dpkg warnings;
/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/passlib/
is deletedActual Behavior
Comments
All of the code is correctly removed, it's just the empty folders left behind...