Hello!

I recently updated NetBSD's TMDA package and started using tmda-ofmipd. It appears that during the brief time tmda-ofmipd runs as root before dropping privileges, Python recompiles several of the installed .pyc files. When uninstalling, NetBSD's package tools make noise and don't remove those files (because they've been modified).

I wasn't able to find Python's bytecode recompilation rules in a quick search of the docs at python.org. Guessing it might be a timestamp issue, I modified the package to install *.py first and *.pyc second, but that didn't help.

Here's the list of affected files:

/usr/pkg/lib/python2.3/site-packages/TMDA/Errors.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/Util.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/Version.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/__init__.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/pythonlib/email/Encoders.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/pythonlib/email/Utils.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/pythonlib/email/__init__.pyc
/usr/pkg/lib/python2.3/site-packages/TMDA/pythonlib/email/_parseaddr.pyc

Any ideas why these files are recompiled after being installed, and how this could be avoided so the NetBSD package can uninstall cleanly?

Thanks,

- Amitai
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to