Public bug reported: Packaging mailman 2.1.16 for FreeBSD's new STAGEDIR (think DESTDIR) support, the FreeBSD Q/A scripts complained that the .pyc files contain the DESTDIR prefix, and thus might misrepresent their own path in tracebacks.
I debugged this and figured that Makefile.in is the culprit, $(PYTHON) -c 'from compileall import *; compile_dir("$(DESTDIR)$(prefix)/Mailman")' Read this in context with the Python reference, http://docs.python.org/2/library/compileall.html#module-compileall (about the ddir argument), and http://docs.python.org/2/library/py_compile.html#module-py_compile. I am offering a patch to remedy this problem, and ask that it be included in all future releases (2.1.17, for instance). Assume it is under the 2-clause BSD license. ** Affects: mailman Importance: Undecided Status: New ** Patch added: "PATCH to fix recorded filename paths in .pyc files" https://bugs.launchpad.net/bugs/1241770/+attachment/3882637/+files/patch-Makefile.in -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1241770 Title: PATCH: Installation with DESTDIR leaves DESTDIR/ prefixes in .pyc files To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1241770/+subscriptions _______________________________________________ Mailman-coders mailing list Mailman-coders@python.org https://mail.python.org/mailman/listinfo/mailman-coders