Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#38762 - [system-config-printer] Optimize python files

Attached to Project: Arch Linux
Opened by Steven (Stebalien) - Saturday, 01 February 2014, 22:40 GMT
Last edited by Eric Belanger (Snowman) - Monday, 14 April 2014, 17:50 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The system-config-printer package doesn't currently include '.pyo' and '.pyc' files. Adding the following lines to the package function compiles these files:

# Compile *.pyc
find $pkgdir -name '*.py' -exec python2 -mpy_compile {} +
# Compile *.pyo
find $pkgdir -name '*.py' -exec python2 -O -mpy_compile {} +
This task depends upon

Closed by  Eric Belanger (Snowman)
Monday, 14 April 2014, 17:50 GMT
Reason for closing:  Implemented
Additional comments about closing:  system-config-printer-1.4.4-1 in [testing] repo