[packages/python] - up to 2.7.13

arekm arekm at pld-linux.org
Sun Dec 18 12:42:07 CET 2016


commit dedb43905503969ea20c426cf29fee844a579825
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Dec 18 12:41:58 2016 +0100

    - up to 2.7.13

 python-multilib.patch | 33 ++++++++++++++-------------------
 python.spec           |  8 ++++----
 2 files changed, 18 insertions(+), 23 deletions(-)
---
diff --git a/python.spec b/python.spec
index c8ae2eb..10b34c1 100644
--- a/python.spec
+++ b/python.spec
@@ -41,15 +41,15 @@ Summary(ru.UTF-8):	Язык программирования очень высо
 Summary(tr.UTF-8):	X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
 Summary(uk.UTF-8):	Мова програмування дуже високого рівня з X-інтерфейсом
 Name:		python
-Version:	%{py_ver}.11
-Release:	5
+Version:	%{py_ver}.13
+Release:	1
 Epoch:		1
 License:	PSF
 Group:		Development/Languages/Python
 Source0:	https://www.python.org/ftp/python/%{version}/Python-%{version}%{beta}.tar.xz
-# Source0-md5:	1dbcc848b4cd8399a8199d000f9f823c
+# Source0-md5:	53b43534153bb2a0363f08bae8b9d990
 Source1:	https://www.python.org/ftp/python/doc/%{dver}/%{name}-%{dver}-docs-html.tar.bz2
-# Source1-md5:	37e1bf28393653575899a00280091af6
+# Source1-md5:	0839cfc2894cded42b3a246a66ad412c
 Source2:	pyconfig.h.in
 Patch0:		%{name}-db.patch
 Patch1:		%{name}-pythonpath.patch
diff --git a/python-multilib.patch b/python-multilib.patch
index df7244a..ebc34d5 100644
--- a/python-multilib.patch
+++ b/python-multilib.patch
@@ -70,7 +70,7 @@
          check_path(cmd.install_purelib, libdir)
 --- Python-2.7.10.orig/Lib/site.py	2015-05-23 18:09:06.000000000 +0200
 +++ Python-2.7.10/Lib/site.py	2015-12-02 19:31:20.058862685 +0100
-@@ -288,13 +288,17 @@
+@@ -288,13 +288,18 @@ def getsitepackages():
          if sys.platform in ('os2emx', 'riscos'):
              sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
          elif os.sep == '/':
@@ -81,16 +81,17 @@
 -            sitepackages.append(os.path.join(prefix, "lib", "site-python"))
 +            sitepackages.append(os.path.join(prefix, sys.lib, "site-python"))
 +            sitepackages.append(os.path.join(prefix, "share",
-+                "python" + sys.version[:3],
-+                "site-packages"))
++                                        "python" + sys.version[:3],
++                                        "site-packages"))
 +            sitepackages.append(os.path.join(prefix, "share", "site-python"))
++
          else:
              sitepackages.append(prefix)
 -            sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
 +            sitepackages.append(os.path.join(prefix, sys.lib, "site-packages"))
-         if sys.platform == "darwin":
-             # for framework builds *only* we add the standard Apple
-             # locations.
+     return sitepackages
+ 
+ def addsitepackages(known_paths):
 --- Python-2.7.10.orig/Lib/sysconfig.py	2015-05-23 18:09:07.000000000 +0200
 +++ Python-2.7.10/Lib/sysconfig.py	2015-12-02 19:33:48.483250053 +0100
 @@ -5,22 +5,24 @@
@@ -161,10 +162,10 @@
              self.assertEqual(dirs[0], wanted)
          elif (sys.platform == "darwin" and
              sysconfig.get_config_var("PYTHONFRAMEWORK")):
-@@ -241,17 +241,17 @@
-             self.assertEqual(dirs[2], wanted)
+@@ -235,17 +235,17 @@ class HelperFunctionsTests(unittest.Test
+             self.assertEqual(dirs[0], wanted)
          elif os.sep == '/':
-             # OS X non-framwework builds, Linux, FreeBSD, etc
+             # OS X, Linux, FreeBSD, etc
 -            self.assertEqual(len(dirs), 2)
 -            wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
 +            self.assertEqual(len(dirs), 4)
@@ -214,8 +215,8 @@
  		$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
 --- Python-2.7.10.orig/Modules/getpath.c	2015-05-23 18:09:20.000000000 +0200
 +++ Python-2.7.10/Modules/getpath.c	2015-12-02 19:31:20.062196042 +0100
-@@ -116,9 +116,21 @@
- #define EXEC_PREFIX PREFIX
+@@ -95,6 +95,17 @@
+  extern "C" {
  #endif
  
 +#ifndef LIB_PYTHON
@@ -229,15 +230,9 @@
 +#define LIB_PYTHON "lib/python"
 +#endif
 +#endif
-+
- #ifndef PYTHONPATH
--#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
--              EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
-+#define PYTHONPATH PREFIX "/" LIB_PYTHON VERSION ":" \
-+              EXEC_PREFIX "/" LIB_PYTHON VERSION "/lib-dynload:"
- #endif
  
- #ifndef LANDMARK
+ #if !defined(PREFIX) || !defined(EXEC_PREFIX) || !defined(VERSION) || !defined(VPATH)
+ #error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined"
 @@ -129,7 +141,7 @@
  static char exec_prefix[MAXPATHLEN+1];
  static char progpath[MAXPATHLEN+1];
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/dedb43905503969ea20c426cf29fee844a579825



More information about the pld-cvs-commit mailing list