2022-02-05 14:23:32 +00:00
|
|
|
Refreshed MilhouseVH patch from Python3.7. Original message:
|
|
|
|
|
|
|
|
Do *not* enable Py_OptimizeFlag=2 (or higher) as this will stop
|
|
|
|
__doc__ output from being generated which will prevent the qemu
|
|
|
|
package for Generic from building.
|
|
|
|
|
|
|
|
---
|
|
|
|
diff -aur a/Python/initconfig.c b/Python/initconfig.c
|
|
|
|
--- a/Python/initconfig.c 2020-07-20 09:01:32.000000000 -0400
|
|
|
|
+++ b/Python/initconfig.c 2020-08-08 03:24:02.796189739 -0400
|
2022-02-27 23:34:12 +00:00
|
|
|
@@ -153,7 +153,7 @@
|
2022-02-05 14:23:32 +00:00
|
|
|
int Py_QuietFlag = 0; /* Needed by sysmodule.c */
|
|
|
|
int Py_InteractiveFlag = 0; /* Needed by Py_FdIsInteractive() below */
|
|
|
|
int Py_InspectFlag = 0; /* Needed to determine whether to exit at SystemExit */
|
|
|
|
-int Py_OptimizeFlag = 0; /* Needed by compile.c */
|
|
|
|
+int Py_OptimizeFlag = 1; /* Needed by compile.c */
|
|
|
|
int Py_NoSiteFlag = 0; /* Suppress 'import site' */
|
|
|
|
int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */
|
|
|
|
int Py_FrozenFlag = 0; /* Needed by getpath.c */
|