We discussed the odd pyc apparmor issues.
TL;DR this should be compiled on install, but it isn't.
Reasons:
1. non standard paths
2. not calling dh_python and similar
It already specifies X-Python-Version: 2.7 in d/control
I was able to fix this up with dh_python2 and some changes to control.
That should make sure also dependencies are covered better.
So I was able to drop the write apparmor rules and still work fine.
The only non pyc file left is a doc file which is ok I think.
We discussed the odd pyc apparmor issues.
TL;DR this should be compiled on install, but it isn't.
Reasons:
1. non standard paths
2. not calling dh_python and similar
List of non compiled .py's in kopanocore:
# for py in $(dpkg -L $(dpkg -l | awk '/kopano|mapi/ {print $2}' | xargs) | grep '.py$'); do [ -f ${py}c ] || echo "${py}c missing"; done python2. 7/dist- packages/ kopano_ backup/ __init_ _.pyc missing kopano- dagent/ python/ mapiplugin. pyc missing kopano- dagent/ python/ pluginmanager. pyc missing kopano- dagent/ python/ plugins/ BMP2PNG. pyc missing kopano- dagent/ python/ plugins/ examplerules. pyc missing kopano- dagent/ python/ plugins/ movetopublic. pyc missing kopano- dagent/ python/ plugintemplates .pyc missing kopano- dagent/ python/ wraplogger. pyc missing kopano- dagent/ python/ zconfig. pyc missing kopano- dagent/ python/ zinterval. pyc missing kopano- dagent/ python/ zunit.pyc missing doc/kopano- gateway/ optimize- imap.pyc missing python2. 7/dist- packages/ kopano_ search/ plugin_ solr.pyc missing python2. 7/dist- packages/ kopano_ search/ plugin_ xapian. pyc missing kopano- spooler/ python/ mapiplugin. pyc missing kopano- spooler/ python/ pluginmanager. pyc missing kopano- spooler/ python/ plugins/ disclaimer. pyc missing kopano- spooler/ python/ plugintemplates .pyc missing kopano- spooler/ python/ wraplogger. pyc missing kopano- spooler/ python/ zconfig. pyc missing kopano- spooler/ python/ zinterval. pyc missing kopano- spooler/ python/ zunit.pyc missing python2. 7/dist- packages/ kopano/ daemon/ runner. pyc missing python2. 7/dist- packages/ MAPI/Util/ Generators. pyc missing python2. 7/dist- packages/ MAPI/Util/ Iterators. pyc missing python2. 7/dist- packages/ MAPI/Util/ codepage. pyc missing
/usr/lib/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/lib/
/usr/lib/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
It already specifies X-Python-Version: 2.7 in d/control
I was able to fix this up with dh_python2 and some changes to control.
That should make sure also dependencies are covered better.
So I was able to drop the write apparmor rules and still work fine.
The only non pyc file left is a doc file which is ok I think.