[Bug 2100624] [NEW] python3 -m sysconfig showing the wrong optimization flag
Marcos Alano
2100624 at bugs.launchpad.net
Fri Feb 28 18:01:37 UTC 2025
Public bug reported:
If I execute `python3 -m sysconfig`, I can see all the options related to how Python was compiled.
The problem is: Python now is compiled with '-O3' flag by default on upstream and also downstream, but for some reason the previously mentioned command shows '-O2'. It's because a line in d/rules that does the replacement, but I don't think we still need it since '-O3' is the default behavior. Keeping '-O2' instead of the real '-O2' is masking the real value, making the sysconfig module less trustworthy.
** Affects: python3.12 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.12 in Ubuntu.
https://bugs.launchpad.net/bugs/2100624
Title:
python3 -m sysconfig showing the wrong optimization flag
Status in python3.12 package in Ubuntu:
New
Bug description:
If I execute `python3 -m sysconfig`, I can see all the options related to how Python was compiled.
The problem is: Python now is compiled with '-O3' flag by default on upstream and also downstream, but for some reason the previously mentioned command shows '-O2'. It's because a line in d/rules that does the replacement, but I don't think we still need it since '-O3' is the default behavior. Keeping '-O2' instead of the real '-O2' is masking the real value, making the sysconfig module less trustworthy.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.12/+bug/2100624/+subscriptions
More information about the foundations-bugs
mailing list