Bug 10843

Summary: python3 package must not set PYTHONDONTWRITEBYTECODE
Product: Mageia Reporter: Hartmut Goebel <h.goebel>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: High Keywords: Junior_job
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://svnweb.mageia.org/packages/cauldron/python3/current/SPECS/python3.spec?revision=446647&view=markup
Whiteboard:
Source RPM: python3-3.3.0-4.mga3.src.rpm CVE:
Status comment:

Description Hartmut Goebel 2013-07-26 10:18:58 CEST
This is the same as bug 10842, just for Python3.

The Python RPM contains scripts for profile.d which forcefully sets PYTHONDONTWRITEBYTECODE. Setting this variable leads 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.

Reproducible: 

Steps to Reproduce:
Hartmut Goebel 2013-07-26 10:19:58 CEST

Keywords: (none) => Junior_job
Priority: Normal => High
Summary: python package must not set PYTHONDONTWRITEBYTECODE => python3 package must not set PYTHONDONTWRITEBYTECODE

Comment 1 David Walser 2013-08-13 03:08:07 CEST
Bug 3348 can cover both pythons since it's the same issue.

*** This bug has been marked as a duplicate of bug 3348 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE