Prototype to automatically recreate the __pycache__ when site-packages is touched.
There's some hard-coded assumptions...
Seems to be able to cleanup py-sip4 fine now
[00:02:29] [01] [00:00:05] Finished devel/py-sip4@py38 | py38-sip4-4.19.25: Success
Install:
[140amd64-main-job-01] Installing py38-sip4-4.19.25... >=> Recreating python bytecode ... >=> wrote bytecode for /usr/local/lib/python3.8/site-packages/PyQt5 >=> Recreating top-level python bytecode ... >=> wrote bytecode for /usr/local/lib/python3.8/site-packages >=> Cleaning stale python bytecode ...
Deinstall:
[140amd64-main-job-01] [1/1] Deleting files for py38-sip4-4.19.25: .......... done >=> Recreating python bytecode ... >=> Recreating top-level python bytecode ... >=> Cleaning stale python bytecode ... >=> removed stale bytecode sipdistutils.cpython-38.pyc >=> removed stale bytecode sipconfig.cpython-38.pyc >=> removed stale bytecode sipconfig.cpython-38.opt-1.pyc >=> removed stale bytecode sipdistutils.cpython-38.opt-1.pyc >=> removed empty cache directory /usr/local/lib/python3.8/site-packages/__pycache__