Bug 1729453

Summary: system-config-printer does not ship byte-compiled Python files
Product: [Fedora] Fedora Reporter: Lumír Balhar <lbalhar>
Component: system-config-printerAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: system-config-printer-1.5.11-18.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-15 11:55:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lumír Balhar 2019-07-12 10:41:30 UTC
system-config-printer-* packages should contain byte-compiled Python files. There is a try to byte-compile Python files in the specfile but the definition in %files sections don't seem to include any __pycache__ folder with byte-compiled Python files.

It seems that this is caused by a switch from Python 2 to Python 3 because Python 2 produces .pyc and .pyo files in the same folder as a source file is and %files sections contain an asterisk after every ".py" suffix.

Let me know if I can help you with anything.

Comment 1 Zdenek Dohnal 2019-07-15 11:55:54 UTC
Hi Lumir,

thank you for reporting the issue and your help! The issue is fixed in rawhide as build system-config-printer-1.5.11-18.fc31.