Skip to content

Commit a5c3ecc

Browse files
Anselm KruisAnselm Kruis
Anselm Kruis
authored and
Anselm Kruis
committed
Merge branch master-3.6 from upstream into branch master-3.6-slp.
2 parents 2f541c1 + af4f1df commit a5c3ecc

24 files changed

+449
-125
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ meta.yaml text eol=lf
44
build.sh text eol=lf
55
bld.bat text eol=crlf
66
recipe/0013-Win32-Do-not-download-externals.patch binary
7+
recipe/0019-Unvendor-sqlite3.patch binary

recipe/0001-Add-Anaconda-Distribution-version-logic.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
From f1b29597d5250704f227aba35030186b77a58ccb Mon Sep 17 00:00:00 2001
1+
From 218ca631727207485a1ae66cc4812835a8743067 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Tue, 15 Aug 2017 22:34:16 +0100
4-
Subject: [PATCH 01/16] Add Anaconda Distribution version logic
4+
Subject: [PATCH 01/19] Add Anaconda Distribution version logic
55

66
---
77
Include/pylifecycle.h | 1 +
88
Lib/platform.py | 1 +
99
Modules/main.c | 3 ++-
10-
Python/getversion.c | 44 +++++++++++++++++++++++++++++++++++++++++---
10+
Python/getversion.c | 44 ++++++++++++++++++++++++++++++++++++++++---
1111
4 files changed, 45 insertions(+), 4 deletions(-)
1212

1313
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
14-
index 01abfa9fcd..ac8e19a308 100644
14+
index 9a528218e4..4b84977e61 100644
1515
--- a/Include/pylifecycle.h
1616
+++ b/Include/pylifecycle.h
17-
@@ -64,6 +64,7 @@ int _Py_CheckPython3();
17+
@@ -66,6 +66,7 @@ int _Py_CheckPython3();
1818
#endif
1919

2020
/* In their own files */

recipe/0002-Darwin-Omit-PYTHONFRAMEWORK-site-packages.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 1015509a2c38317f4ea75f527f003f000d73f060 Mon Sep 17 00:00:00 2001
1+
From 359b0bebfe38b56b1a370a1edcfc21fd41af3d29 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:55:54 +0100
4-
Subject: [PATCH 02/16] Darwin: Omit PYTHONFRAMEWORK site-packages
4+
Subject: [PATCH 02/19] Darwin: Omit PYTHONFRAMEWORK site-packages
55

66
We probably do not need this patch as our Python is
77
probably not built as a PYTHONFRAMWORK build.
@@ -10,7 +10,7 @@ probably not built as a PYTHONFRAMWORK build.
1010
1 file changed, 1 insertion(+), 9 deletions(-)
1111

1212
diff --git a/Lib/site.py b/Lib/site.py
13-
index 1bd63ccf6a..0c089b9beb 100644
13+
index 86ca2dba61..c01aba1e35 100644
1414
--- a/Lib/site.py
1515
+++ b/Lib/site.py
1616
@@ -310,15 +310,7 @@ def getsitepackages(prefixes=None):
@@ -31,5 +31,5 @@ index 1bd63ccf6a..0c089b9beb 100644
3131

3232
def addsitepackages(known_paths, prefixes=None):
3333
--
34-
2.15.2 (Apple Git-101.1)
34+
2.17.2 (Apple Git-113)
3535

recipe/0003-Darwin-Add-arch-x86_64-to-UnicCCompiler-ld_args.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 8a7074b19f542afc94c8744ae160e8a5937f912b Mon Sep 17 00:00:00 2001
1+
From 75a946b46c74c91345128adade6ca99c6fcb1a55 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 08:48:16 +0100
4-
Subject: [PATCH 03/16] Darwin: Add -arch x86_64 to UnicCCompiler ld_args
4+
Subject: [PATCH 03/19] Darwin: Add -arch x86_64 to UnicCCompiler ld_args
55

66
---
77
Lib/distutils/unixccompiler.py | 1 +
@@ -20,5 +20,5 @@ index 3f321c28dc..a36acdc57f 100644
2020
self.spawn(linker + ld_args)
2121
except DistutilsExecError as msg:
2222
--
23-
2.15.2 (Apple Git-101.1)
23+
2.17.2 (Apple Git-113)
2424

recipe/0004-Win32-distutils-Also-look-for-executable.bat.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From df6c4d8f5ac055453e68fd4df9df8dddf06c1efe Mon Sep 17 00:00:00 2001
1+
From 852620f1fa73d862f6ea09d5db1c973319ed0db0 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:07:08 +0100
4-
Subject: [PATCH 04/16] Win32: distutils: Also look for executable.bat
4+
Subject: [PATCH 04/19] Win32: distutils: Also look for executable.bat
55

66
This patch should probably not exist, or at least be
77
rewritten. See the comments.
@@ -10,11 +10,11 @@ rewritten. See the comments.
1010
1 file changed, 25 insertions(+), 9 deletions(-)
1111

1212
diff --git a/Lib/distutils/spawn.py b/Lib/distutils/spawn.py
13-
index 5dd415a283..bef82fb1ac 100644
13+
index 5387688093..ae9cb8eee0 100644
1414
--- a/Lib/distutils/spawn.py
1515
+++ b/Lib/distutils/spawn.py
1616
@@ -176,17 +176,33 @@ def find_executable(executable, path=None):
17-
path = os.environ['PATH']
17+
path = os.environ.get('PATH', os.defpath)
1818

1919
paths = path.split(os.pathsep)
2020
- base, ext = os.path.splitext(executable)
@@ -57,5 +57,5 @@ index 5dd415a283..bef82fb1ac 100644
5757
else:
5858
return executable
5959
--
60-
2.15.2 (Apple Git-101.1)
60+
2.17.2 (Apple Git-113)
6161

Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From c21b1def3ee610536be0f3f76e36d4f0e4fbbbb8 Mon Sep 17 00:00:00 2001
1+
From 77160444308a7a7e9e113f5d7f049f00dae3c9c9 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:15:26 +0100
4-
Subject: [PATCH 05/16] Win32: Ensure Library\bin is in os.environ["PATH"]
4+
Subject: [PATCH 05/19] Win32: Ensure Library\bin is in os.environ["PATH"]
55

66
---
77
Lib/site.py | 5 +++++
88
1 file changed, 5 insertions(+)
99

1010
diff --git a/Lib/site.py b/Lib/site.py
11-
index 0c089b9beb..eaa93bb2f8 100644
11+
index c01aba1e35..088b0d57a8 100644
1212
--- a/Lib/site.py
1313
+++ b/Lib/site.py
14-
@@ -529,6 +529,11 @@ def main():
14+
@@ -538,6 +538,11 @@ def main():
1515
execsitecustomize()
1616
if ENABLE_USER_SITE:
1717
execusercustomize()
@@ -24,5 +24,5 @@ index 0c089b9beb..eaa93bb2f8 100644
2424
# Prevent extending of sys.path when python was started with -S and
2525
# site is imported later.
2626
--
27-
2.15.2 (Apple Git-101.1)
27+
2.17.2 (Apple Git-113)
2828

recipe/0006-Win32-Change-FD_SETSIZE-from-512-to-2048.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
From ebe9ce41083aedff1c28786753660482a268725c Mon Sep 17 00:00:00 2001
1+
From b6df49ac970959f99c2c96640c1cad0f4d9411b5 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:53:55 +0100
4-
Subject: [PATCH 06/16] Win32: Change FD_SETSIZE from 512 to 2048
4+
Subject: [PATCH 06/19] Win32: Change FD_SETSIZE from 512 to 2048
55

66
https://github.com/ContinuumIO/anaconda-issues/issues/1241
77
---
88
Modules/selectmodule.c | 2 +-
99
1 file changed, 1 insertion(+), 1 deletion(-)
1010

1111
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
12-
index 7e81f1904c..22c6dc2b35 100644
12+
index 2bc7b9ff79..b1c601b553 100644
1313
--- a/Modules/selectmodule.c
1414
+++ b/Modules/selectmodule.c
1515
@@ -33,7 +33,7 @@
@@ -22,5 +22,5 @@ index 7e81f1904c..22c6dc2b35 100644
2222

2323
#if defined(HAVE_POLL_H)
2424
--
25-
2.15.2 (Apple Git-101.1)
25+
2.17.2 (Apple Git-113)
2626

recipe/0007-Win32-distutils-Add-support-to-cygwinccompiler-for-V.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From a4094d84003cf0266ef2c5a0b7abee7283de246f Mon Sep 17 00:00:00 2001
1+
From 940a3533f6b08435d24cb0dd3dbfeaa7cd1bccb1 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:59:00 +0100
4-
Subject: [PATCH 07/16] Win32: distutils: Add support to cygwinccompiler for
4+
Subject: [PATCH 07/19] Win32: distutils: Add support to cygwinccompiler for
55
VS>=2015
66

77
Really this is for mingw-w64 though
@@ -24,5 +24,5 @@ index 1c36990347..fe95547112 100644
2424
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
2525

2626
--
27-
2.15.2 (Apple Git-101.1)
27+
2.17.2 (Apple Git-113)
2828

recipe/0008-Do-not-pass-g-to-GCC-when-not-Py_DEBUG.patch

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 6237bedf1e20d60448839006e6cc8c7ba71d0992 Mon Sep 17 00:00:00 2001
1+
From b5b69f968ef6480847259efecf6a8bda4fdd321b Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 11:45:28 +0100
4-
Subject: [PATCH 08/16] Do not pass -g to GCC when not Py_DEBUG
4+
Subject: [PATCH 08/19] Do not pass -g to GCC when not Py_DEBUG
55

66
This bloats our exe and our modules a lot.
77
---
@@ -10,10 +10,10 @@ This bloats our exe and our modules a lot.
1010
2 files changed, 4 insertions(+), 4 deletions(-)
1111

1212
diff --git a/configure b/configure
13-
index 8c2a0ca546..4897ff14ad 100755
13+
index e39c16eee2..5db31f475d 100755
1414
--- a/configure
1515
+++ b/configure
16-
@@ -4265,9 +4265,9 @@ if test "$ac_test_CFLAGS" = set; then
16+
@@ -4271,9 +4271,9 @@ if test "$ac_test_CFLAGS" = set; then
1717
CFLAGS=$ac_save_CFLAGS
1818
elif test $ac_cv_prog_cc_g = yes; then
1919
if test "$GCC" = yes; then
@@ -25,7 +25,7 @@ index 8c2a0ca546..4897ff14ad 100755
2525
fi
2626
else
2727
if test "$GCC" = yes; then
28-
@@ -6910,7 +6910,7 @@ then
28+
@@ -6946,7 +6946,7 @@ then
2929
OPT="-g -O0 -Wall"
3030
fi
3131
else
@@ -35,10 +35,10 @@ index 8c2a0ca546..4897ff14ad 100755
3535
;;
3636
*)
3737
diff --git a/configure.ac b/configure.ac
38-
index f2cd11730b..6cbb1eb91a 100644
38+
index cf280506bd..b24f7e8df0 100644
3939
--- a/configure.ac
4040
+++ b/configure.ac
41-
@@ -1509,7 +1509,7 @@ then
41+
@@ -1539,7 +1539,7 @@ then
4242
OPT="-g -O0 -Wall"
4343
fi
4444
else
@@ -48,5 +48,5 @@ index f2cd11730b..6cbb1eb91a 100644
4848
;;
4949
*)
5050
--
51-
2.15.2 (Apple Git-101.1)
51+
2.17.2 (Apple Git-113)
5252

recipe/0009-Support-cross-compiling-byte-code.patch

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
From 1e7c3215a8a1c941479da36ae3aa652e3c70337b Mon Sep 17 00:00:00 2001
1+
From dbd0fcaaddd61affb8c5c30e2916c848d03e8d9c Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 12:17:33 +0100
4-
Subject: [PATCH 09/16] Support cross-compiling byte-code
4+
Subject: [PATCH 09/19] Support cross-compiling byte-code
55

66
https://bugs.python.org/issue22724
77
---
8-
Makefile.pre.in | 19 ++++++++++---------
8+
Makefile.pre.in | 20 +++++++++++---------
99
configure | 4 +++-
1010
configure.ac | 4 +++-
11-
3 files changed, 16 insertions(+), 11 deletions(-)
11+
3 files changed, 17 insertions(+), 11 deletions(-)
1212

1313
diff --git a/Makefile.pre.in b/Makefile.pre.in
14-
index d912a19e79..36554b5e24 100644
14+
index d15d93509d..a008a39b0b 100644
1515
--- a/Makefile.pre.in
1616
+++ b/Makefile.pre.in
17-
@@ -231,6 +231,7 @@ BUILDPYTHON= python$(BUILDEXE)
17+
@@ -237,6 +237,7 @@ BUILDPYTHON= python$(BUILDEXE)
1818

1919
PYTHON_FOR_REGEN=@PYTHON_FOR_REGEN@
2020
UPDATE_FILE=@PYTHON_FOR_REGEN@ $(srcdir)/Tools/scripts/update_file.py
2121
+PY_BUILD_ENVIRON=@PY_BUILD_ENVIRON@
2222
PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
2323
_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
2424
BUILD_GNU_TYPE= @build@
25-
@@ -539,15 +540,15 @@ coverage-report: regen-grammar regen-importlib
25+
@@ -545,15 +546,16 @@ coverage-report: regen-grammar regen-importlib
2626

2727
# Run "Argument Clinic" over all source files
2828
.PHONY=clinic
@@ -33,15 +33,16 @@ index d912a19e79..36554b5e24 100644
3333

3434
# Build the interpreter
3535
$(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
36-
$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
36+
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
3737

3838
platform: $(BUILDPYTHON) pybuilddir.txt
3939
- $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
4040
+ $(RUNSHARED) $(PY_BUILD_ENVIRON) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
41+
+
4142

4243
# Create build directory and generate the sysconfig build-time data there.
4344
# pybuilddir.txt contains the name of the build dir and is used for
44-
@@ -558,7 +559,7 @@ platform: $(BUILDPYTHON) pybuilddir.txt
45+
@@ -564,7 +566,7 @@ platform: $(BUILDPYTHON) pybuilddir.txt
4546
# or removed in case of failure.
4647
pybuilddir.txt: $(BUILDPYTHON)
4748
@echo "none" > ./pybuilddir.txt
@@ -50,7 +51,7 @@ index d912a19e79..36554b5e24 100644
5051
if test $$? -ne 0 ; then \
5152
echo "generate-posix-vars failed" ; \
5253
rm -f ./pybuilddir.txt ; \
53-
@@ -589,7 +590,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
54+
@@ -595,7 +597,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
5455
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build"; \
5556
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
5657
_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
@@ -59,7 +60,7 @@ index d912a19e79..36554b5e24 100644
5960

6061

6162
# Build static library
62-
@@ -1091,7 +1092,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKI
63+
@@ -1090,7 +1092,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKI
6364
upgrade) ensurepip="--upgrade" ;; \
6465
install|*) ensurepip="" ;; \
6566
esac; \
@@ -68,7 +69,7 @@ index d912a19e79..36554b5e24 100644
6869
$$ensurepip --root=$(DESTDIR)/ ; \
6970
fi
7071

71-
@@ -1101,7 +1102,7 @@ altinstall: commoninstall
72+
@@ -1100,7 +1102,7 @@ altinstall: commoninstall
7273
upgrade) ensurepip="--altinstall --upgrade" ;; \
7374
install|*) ensurepip="--altinstall" ;; \
7475
esac; \
@@ -77,7 +78,7 @@ index d912a19e79..36554b5e24 100644
7778
$$ensurepip --root=$(DESTDIR)/ ; \
7879
fi
7980

80-
@@ -1472,7 +1473,7 @@ libainstall: @DEF_MAKE_RULE@ python-config
81+
@@ -1470,7 +1472,7 @@ libainstall: @DEF_MAKE_RULE@ python-config
8182
# Install the dynamically loadable modules
8283
# This goes into $(exec_prefix)
8384
sharedinstall: sharedmods
@@ -86,7 +87,7 @@ index d912a19e79..36554b5e24 100644
8687
--prefix=$(prefix) \
8788
--install-scripts=$(BINDIR) \
8889
--install-platlib=$(DESTSHARED) \
89-
@@ -1556,7 +1557,7 @@ frameworkinstallextras:
90+
@@ -1554,7 +1556,7 @@ frameworkinstallextras:
9091
# This installs a few of the useful scripts in Tools/scripts
9192
scriptsinstall:
9293
SRCDIR=$(srcdir) $(RUNSHARED) \
@@ -96,18 +97,18 @@ index d912a19e79..36554b5e24 100644
9697
--install-scripts=$(BINDIR) \
9798
--root=$(DESTDIR)/
9899
diff --git a/configure b/configure
99-
index 4897ff14ad..44ed296011 100755
100+
index 5db31f475d..96379d7937 100755
100101
--- a/configure
101102
+++ b/configure
102-
@@ -751,6 +751,7 @@ CONFIG_ARGS
103+
@@ -752,6 +752,7 @@ CONFIG_ARGS
103104
SOVERSION
104105
VERSION
105106
PYTHON_FOR_BUILD
106107
+PY_BUILD_ENVIRON
107108
PYTHON_FOR_REGEN
108109
host_os
109110
host_vendor
110-
@@ -2926,7 +2927,8 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
111+
@@ -2932,7 +2933,8 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
111112
fi
112113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
113114
$as_echo "$interp" >&6; }
@@ -118,7 +119,7 @@ index 4897ff14ad..44ed296011 100755
118119
elif test "$cross_compiling" = maybe; then
119120
as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
120121
diff --git a/configure.ac b/configure.ac
121-
index 6cbb1eb91a..21de4b26ed 100644
122+
index b24f7e8df0..6404ad88db 100644
122123
--- a/configure.ac
123124
+++ b/configure.ac
124125
@@ -73,13 +73,15 @@ if test "$cross_compiling" = yes; then
@@ -139,5 +140,5 @@ index 6cbb1eb91a..21de4b26ed 100644
139140

140141
dnl Ensure that if prefix is specified, it does not end in a slash. If
141142
--
142-
2.15.2 (Apple Git-101.1)
143+
2.17.2 (Apple Git-113)
143144

recipe/0010-Win32-Fixes-for-Windows-GCC-interop-needed-by-RPy2-a.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 726ecd9dde4a2252b254a4d34dbf8a54d114adfc Mon Sep 17 00:00:00 2001
1+
From 51952b8870efa2514d41afa49f9d96d8836ab070 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 16 Aug 2017 12:23:02 +0100
4-
Subject: [PATCH 10/16] Win32: Fixes for Windows GCC interop needed by RPy2 and
4+
Subject: [PATCH 10/19] Win32: Fixes for Windows GCC interop needed by RPy2 and
55
CVXOPT
66

77
We must pass -DMS_WIN32 or -DMS_WIN64
@@ -31,5 +31,5 @@ index fe95547112..a5b759ddaf 100644
3131
linker_so='%s %s %s'
3232
% (self.linker_dll, shared_option,
3333
--
34-
2.15.2 (Apple Git-101.1)
34+
2.17.2 (Apple Git-113)
3535

0 commit comments

Comments
 (0)