2c308d90d5
Test: Pass build and simplex deploy test Depends-On: https://review.openstack.org/626065 Story: 2004522 Task: 28396 Change-Id: I850651bb4c5ca2e60d4b63434d5f1cfe72d64069 Signed-off-by: Zhe Hu <zhe.hu@intel.com>
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 089860dac0d15120466dc7d9e38041dbaae505eb Mon Sep 17 00:00:00 2001
|
|
From: Al Bailey <Al.Bailey@windriver.com>
|
|
Date: Wed, 28 Mar 2018 08:26:56 -0500
|
|
Subject: [PATCH] Make Python Faster
|
|
|
|
---
|
|
SPECS/python.spec | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/SPECS/python.spec b/SPECS/python.spec
|
|
index 94adb05..36289ea 100644
|
|
--- a/SPECS/python.spec
|
|
+++ b/SPECS/python.spec
|
|
@@ -1301,6 +1301,8 @@ Patch306: 00306-fix-oserror-17-upon-semaphores-creation.patch
|
|
# above:
|
|
Patch5000: 05000-autotool-intermediates.patch
|
|
|
|
+Patch9000: Rollup-optimization-commits.patch
|
|
+
|
|
# ======================================================
|
|
# Additional metadata, and subpackages
|
|
# ======================================================
|
|
@@ -1719,6 +1721,7 @@ find -name "*~" |xargs rm -f
|
|
%patch5000 -p0 -b .autotool-intermediates
|
|
%endif
|
|
|
|
+%patch9000 -p1
|
|
|
|
# ======================================================
|
|
# Configuring and building the code:
|
|
@@ -1849,7 +1852,7 @@ BuildPython debug \
|
|
BuildPython optimized \
|
|
python \
|
|
python%{pybasever} \
|
|
- "" \
|
|
+ "--enable-optimizations --with-computed-gotos" \
|
|
true
|
|
|
|
|
|
--
|
|
2.7.4
|
|
|