The python RPM contains scripts for profile.d which forcefully sets PYTHONDONTWRITEBYTECODE. Setting this variable leds to a lot of trouble, see bug 3348, bug 3358, and bug 3350. And it leads to a regression in bug 3358#c33. Pythons default behavior is to write byte-code, so setting this variable changes the normal behavior and objects user expectations. If someone really wants to disable writing byte-code, he should set this variable actively. Solution: Just remove (or comment) the two lines containing PYTHONDONTWRITEBYTECODE from the .spec file. Reproducible: Steps to Reproduce:
Keywords: (none) => Junior_jobPriority: Normal => HighBlocks: (none) => 3358, 3348
No way to fix that in Mageia 2 and Mageia 3 It will be fix in Mageia 4, not before and it is a duplicate of #3348 *** This bug has been marked as a duplicate of bug 3348 ***
Status: NEW => RESOLVEDCC: (none) => makowski.mageiaResolution: (none) => DUPLICATE
Keywords: Junior_job => (none)Blocks: 3348, 3358 => (none)
Reopening, as this bug is explicitly for Cauldron. And it is not a duplicate of 3348, but a precondition for solving 3348: If we remove PYTHONDONTWRITEBYTECODE from all .spec-files, but still have it in the profile.d-files, byte-code will still not be written when building packages.
Status: RESOLVED => REOPENEDResolution: DUPLICATE => (none)
Please stop, and really trust me, it is a duplicate bug 3348 is not about "remove PYTHONDONTWRITEBYTECODE from all .spec-files" but change profile.d files and at the same time, we need to remove PYTHONDONTWRITEBYTECODE from some spec files *** This bug has been marked as a duplicate of bug 3348 ***
Status: REOPENED => RESOLVEDResolution: (none) => DUPLICATE