gPodder Bug Tracker – Bug 1786
gPodder installation script doesn't generating optimized (*.pyc) files
Last modified: 2013-03-14 05:48:06 GMT
It's all in subject. Right now gPodder installs/generates *.py and *.pyc files, but not *.pyo files. If by some reason user will execute already installed gPodder under root, then *.pyo files will be generated automatically and this will break packaging at FreeBSD (at deinstallation stage). Would be great to have this behaviour in next versions of gPodder, since it should be simple to implement. Thanks in advance.
Can you check if this is how packaging is handled for other Python packages on FreeBSD too? One option would be to do a custom "make install" by running the steps separately, not sure if this is easy with FreeBSD ports or if you want to do it. Example:
PREFIX=/something/something make share/dbus-1/services/org.gpodder.service
PREFIX=/something/something make share/applications/gpodder.desktop
python setup.py install --root=/some/temp/root --prefix=/something/something --optimize=1
Fixed upstream: http://gpodder.org/commit/b4133bdb
Sorry for the late response. Yes, this change fixed the issue. Thanks a lot!