Patchwork [1,of,2] buildrpm: bump bundled python version to 2.7.14 when building for centos{5, 6}

login
register
mail settings
Submitter via Mercurial-devel
Date Feb. 12, 2018, 11:16 p.m.
Message ID <ae4209858d434d88428c.1518477399@cuben>
Download mbox | patch
Permalink /patch/27721/
State Accepted
Headers show

Comments

via Mercurial-devel - Feb. 12, 2018, 11:16 p.m.
# HG changeset patch
# User Antonio Muci <a.mux@inwind.it>
# Date 1518476376 -3600
#      Mon Feb 12 23:59:36 2018 +0100
# Node ID ae4209858d434d88428c03d3b1be3ec662907ec2
# Parent  b62c4154bb287fe0f4c15cdb0d2ef290069288df
buildrpm: bump bundled python version to 2.7.14 when building for centos{5,6}

when building rpm packages for centos 5 and 6, we bundle a mercurial-specific
version of python 2.7 in /opt/python-hg

Let's bump the embedded python version from 2.7.10 (released in 2015) to
2.7.14 (latest as of today)
Yuya Nishihara - Feb. 13, 2018, 11:22 a.m.
On Tue, 13 Feb 2018 00:16:39 +0100, Antonio Muci via Mercurial-devel wrote:
> # HG changeset patch
> # User Antonio Muci <a.mux@inwind.it>
> # Date 1518476376 -3600
> #      Mon Feb 12 23:59:36 2018 +0100
> # Node ID ae4209858d434d88428c03d3b1be3ec662907ec2
> # Parent  b62c4154bb287fe0f4c15cdb0d2ef290069288df
> buildrpm: bump bundled python version to 2.7.14 when building for centos{5,6}

Queued, thanks.

Patch

diff --git a/contrib/Makefile.python b/contrib/Makefile.python
--- a/contrib/Makefile.python
+++ b/contrib/Makefile.python
@@ -1,4 +1,4 @@ 
-PYTHONVER=2.7.10
+PYTHONVER=2.7.14
 PYTHONNAME=python-
 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
 SYMLINKDIR=$(HOME)/bin
diff --git a/contrib/buildrpm b/contrib/buildrpm
--- a/contrib/buildrpm
+++ b/contrib/buildrpm
@@ -20,8 +20,8 @@  while [ "$1" ]; do
         ;;
     --withpython | --with-python)
         shift
-        PYTHONVER=2.7.10
-        PYTHONMD5=d7547558fd673bd9d38e2108c6b42521
+        PYTHONVER=2.7.14
+        PYTHONMD5=cee2e4b33ad3750da77b2e85f2f8b724
         ;;
     --rpmbuilddir )
         shift