mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:42:46 +08:00
[Python2 ]Update to 2.7.18 (#17798)
* [Python2] Update to 2.7.18 * [vcpkg] update baseline
This commit is contained in:
parent
d850857eb4
commit
104b3c7625
@ -1,28 +1,5 @@
|
|||||||
From 4988ea4f4ce6af0b567e6a2dc2c23aaf7cc5f12d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
|
|
||||||
Date: Mon, 31 Jul 2017 10:59:47 -0400
|
|
||||||
Subject: [PATCH 1/3] VS2010 Support: Backport "Fix #13210. Port the Windows
|
|
||||||
build from VS2008 to VS2010."
|
|
||||||
|
|
||||||
This commit is a partial backport of python/cpython@401f9f3. It was
|
|
||||||
originally designed to work with python-cmake-buildsystem.
|
|
||||||
|
|
||||||
The following modules have NOT been backported:
|
|
||||||
|
|
||||||
* Tools/msi
|
|
||||||
* Tools/buildbot
|
|
||||||
* PCBuild
|
|
||||||
---
|
|
||||||
Lib/distutils/command/build_ext.py | 2 +-
|
|
||||||
Lib/distutils/msvc9compiler.py | 11 ++++++-----
|
|
||||||
PC/dl_nt.c | 11 ++++++++++-
|
|
||||||
PC/msvcrtmodule.c | 15 ++++++++++++++-
|
|
||||||
PC/pyconfig.h | 9 +++++++--
|
|
||||||
Python/dynload_win.c | 8 ++++++++
|
|
||||||
6 files changed, 46 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
||||||
index 2c68be3..f1d184b 100644
|
index 86a85c1..65a60b5 100644
|
||||||
--- a/Lib/distutils/command/build_ext.py
|
--- a/Lib/distutils/command/build_ext.py
|
||||||
+++ b/Lib/distutils/command/build_ext.py
|
+++ b/Lib/distutils/command/build_ext.py
|
||||||
@@ -193,7 +193,7 @@ class build_ext (Command):
|
@@ -193,7 +193,7 @@ class build_ext (Command):
|
||||||
@ -35,7 +12,7 @@ index 2c68be3..f1d184b 100644
|
|||||||
if self.plat_name == 'win32':
|
if self.plat_name == 'win32':
|
||||||
suffix = ''
|
suffix = ''
|
||||||
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py
|
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py
|
||||||
index 33d3e51..f6de11c 100644
|
index 33d3e51..9fe6417 100644
|
||||||
--- a/Lib/distutils/msvc9compiler.py
|
--- a/Lib/distutils/msvc9compiler.py
|
||||||
+++ b/Lib/distutils/msvc9compiler.py
|
+++ b/Lib/distutils/msvc9compiler.py
|
||||||
@@ -662,11 +662,12 @@ class MSVCCompiler(CCompiler) :
|
@@ -662,11 +662,12 @@ class MSVCCompiler(CCompiler) :
|
||||||
@ -50,26 +27,24 @@ index 33d3e51..f6de11c 100644
|
|||||||
+ if self.__version < 10:
|
+ if self.__version < 10:
|
||||||
+ try:
|
+ try:
|
||||||
+ self.spawn(['mt.exe', '-nologo', '-manifest',
|
+ self.spawn(['mt.exe', '-nologo', '-manifest',
|
||||||
+ temp_manifest, out_arg])
|
+ mffilename, out_arg])
|
||||||
+ except PackagingExecError as msg:
|
+ except DistutilsExecError, msg:
|
||||||
+ raise LinkError(msg)
|
+ raise LinkError(msg)
|
||||||
else:
|
else:
|
||||||
log.debug("skipping %s (up-to-date)", output_filename)
|
log.debug("skipping %s (up-to-date)", output_filename)
|
||||||
|
|
||||||
diff --git a/PC/dl_nt.c b/PC/dl_nt.c
|
diff --git a/PC/dl_nt.c b/PC/dl_nt.c
|
||||||
index ef1ce09..5ff07fd 100644
|
index 3e58bac..cad9de5 100644
|
||||||
--- a/PC/dl_nt.c
|
--- a/PC/dl_nt.c
|
||||||
+++ b/PC/dl_nt.c
|
+++ b/PC/dl_nt.c
|
||||||
@@ -18,7 +18,8 @@ char dllVersionBuffer[16] = ""; // a private buffer
|
@@ -18,6 +18,7 @@ char dllVersionBuffer[16] = ""; // a private buffer
|
||||||
HMODULE PyWin_DLLhModule = NULL;
|
HMODULE PyWin_DLLhModule = NULL;
|
||||||
const char *PyWin_DLLVersionString = dllVersionBuffer;
|
const char *PyWin_DLLVersionString = dllVersionBuffer;
|
||||||
|
|
||||||
-// Windows "Activation Context" work:
|
|
||||||
+#if HAVE_SXS
|
+#if HAVE_SXS
|
||||||
+// Windows "Activation Context" work.
|
// Windows "Activation Context" work:
|
||||||
// Our .pyd extension modules are generally built without a manifest (ie,
|
// Our .pyd extension modules are generally built without a manifest (ie,
|
||||||
// those included with Python and those built with a default distutils.
|
// those included with Python and those built with a default distutils.
|
||||||
// This requires we perform some "activation context" magic when loading our
|
|
||||||
@@ -29,6 +30,8 @@ const char *PyWin_DLLVersionString = dllVersionBuffer;
|
@@ -29,6 +30,8 @@ const char *PyWin_DLLVersionString = dllVersionBuffer;
|
||||||
// As an added complication, this magic only works on XP or later - we simply
|
// As an added complication, this magic only works on XP or later - we simply
|
||||||
// use the existence (or not) of the relevant function pointers from kernel32.
|
// use the existence (or not) of the relevant function pointers from kernel32.
|
||||||
@ -79,16 +54,15 @@ index ef1ce09..5ff07fd 100644
|
|||||||
|
|
||||||
typedef BOOL (WINAPI * PFN_GETCURRENTACTCTX)(HANDLE *);
|
typedef BOOL (WINAPI * PFN_GETCURRENTACTCTX)(HANDLE *);
|
||||||
typedef BOOL (WINAPI * PFN_ACTIVATEACTCTX)(HANDLE, ULONG_PTR *);
|
typedef BOOL (WINAPI * PFN_ACTIVATEACTCTX)(HANDLE, ULONG_PTR *);
|
||||||
@@ -76,6 +79,8 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie)
|
@@ -75,6 +78,7 @@ void _Py_DeactivateActCtx(ULONG_PTR cookie)
|
||||||
|
if (!(*pfnDeactivateActCtx)(0, cookie))
|
||||||
OutputDebugString("Python failed to de-activate the activation context\n");
|
OutputDebugString("Python failed to de-activate the activation context\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
+#endif /* HAVE_SXS */
|
+#endif /* HAVE_SXS */
|
||||||
+
|
|
||||||
BOOL WINAPI DllMain (HANDLE hInst,
|
BOOL WINAPI DllMain (HANDLE hInst,
|
||||||
ULONG ul_reason_for_call,
|
ULONG ul_reason_for_call,
|
||||||
LPVOID lpReserved)
|
@@ -87,6 +91,7 @@ BOOL WINAPI DllMain (HANDLE hInst,
|
||||||
@@ -87,17 +92,21 @@ BOOL WINAPI DllMain (HANDLE hInst,
|
|
||||||
// 1000 is a magic number I picked out of the air. Could do with a #define, I spose...
|
// 1000 is a magic number I picked out of the air. Could do with a #define, I spose...
|
||||||
LoadString(hInst, 1000, dllVersionBuffer, sizeof(dllVersionBuffer));
|
LoadString(hInst, 1000, dllVersionBuffer, sizeof(dllVersionBuffer));
|
||||||
|
|
||||||
@ -96,9 +70,10 @@ index ef1ce09..5ff07fd 100644
|
|||||||
// and capture our activation context for use when loading extensions.
|
// and capture our activation context for use when loading extensions.
|
||||||
_LoadActCtxPointers();
|
_LoadActCtxPointers();
|
||||||
if (pfnGetCurrentActCtx && pfnAddRefActCtx)
|
if (pfnGetCurrentActCtx && pfnAddRefActCtx)
|
||||||
if ((*pfnGetCurrentActCtx)(&PyWin_DLLhActivationContext))
|
@@ -98,12 +103,15 @@ BOOL WINAPI DllMain (HANDLE hInst,
|
||||||
if (!(*pfnAddRefActCtx)(PyWin_DLLhActivationContext))
|
"activation context\n");
|
||||||
OutputDebugString("Python failed to load the default activation context\n");
|
return FALSE;
|
||||||
|
}
|
||||||
+#endif
|
+#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -110,8 +85,9 @@ index ef1ce09..5ff07fd 100644
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
|
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
|
||||||
index 44c82e4..68928dd 100644
|
index 44c82e4..091957e 100644
|
||||||
--- a/PC/msvcrtmodule.c
|
--- a/PC/msvcrtmodule.c
|
||||||
+++ b/PC/msvcrtmodule.c
|
+++ b/PC/msvcrtmodule.c
|
||||||
@@ -25,6 +25,8 @@
|
@@ -25,6 +25,8 @@
|
||||||
@ -140,11 +116,10 @@ index 44c82e4..68928dd 100644
|
|||||||
#ifdef _VC_ASSEMBLY_PUBLICKEYTOKEN
|
#ifdef _VC_ASSEMBLY_PUBLICKEYTOKEN
|
||||||
st = PyModule_AddStringConstant(m, "VC_ASSEMBLY_PUBLICKEYTOKEN",
|
st = PyModule_AddStringConstant(m, "VC_ASSEMBLY_PUBLICKEYTOKEN",
|
||||||
_VC_ASSEMBLY_PUBLICKEYTOKEN);
|
_VC_ASSEMBLY_PUBLICKEYTOKEN);
|
||||||
@@ -427,4 +430,14 @@ initmsvcrt(void)
|
@@ -427,4 +430,13 @@ initmsvcrt(void)
|
||||||
__LIBRARIES_ASSEMBLY_NAME_PREFIX);
|
__LIBRARIES_ASSEMBLY_NAME_PREFIX);
|
||||||
if (st < 0)return;
|
if (st < 0)return;
|
||||||
#endif
|
#endif
|
||||||
+
|
|
||||||
+/* constants for the 2010 crt versions */
|
+/* constants for the 2010 crt versions */
|
||||||
+#if defined(_VC_CRT_MAJOR_VERSION) && defined (_VC_CRT_MINOR_VERSION) && defined(_VC_CRT_BUILD_VERSION) && defined(_VC_CRT_RBUILD_VERSION)
|
+#if defined(_VC_CRT_MAJOR_VERSION) && defined (_VC_CRT_MINOR_VERSION) && defined(_VC_CRT_BUILD_VERSION) && defined(_VC_CRT_RBUILD_VERSION)
|
||||||
+ version = PyUnicode_FromFormat("%d.%d.%d.%d", _VC_CRT_MAJOR_VERSION,
|
+ version = PyUnicode_FromFormat("%d.%d.%d.%d", _VC_CRT_MAJOR_VERSION,
|
||||||
@ -156,12 +131,12 @@ index 44c82e4..68928dd 100644
|
|||||||
+#endif
|
+#endif
|
||||||
}
|
}
|
||||||
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
|
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
|
||||||
index 5d1c90a..b60af1e 100644
|
index 5fa6398..0cbd236 100644
|
||||||
--- a/PC/pyconfig.h
|
--- a/PC/pyconfig.h
|
||||||
+++ b/PC/pyconfig.h
|
+++ b/PC/pyconfig.h
|
||||||
@@ -231,14 +231,19 @@ typedef int pid_t;
|
@@ -226,14 +226,19 @@ typedef int pid_t;
|
||||||
#define hypot _hypot
|
#define Py_IS_FINITE(X) _finite(X)
|
||||||
#endif
|
#define copysign _copysign
|
||||||
|
|
||||||
-#endif /* _MSC_VER */
|
-#endif /* _MSC_VER */
|
||||||
+/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
|
+/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
|
||||||
@ -222,6 +197,3 @@ index 4e5555e..8626642 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* restore old error mode settings */
|
/* restore old error mode settings */
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
||||||
|
@ -1,38 +1,5 @@
|
|||||||
From e6a1f39d2d876bbfc8b02e628dfd1d0fef4a0651 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
|
|
||||||
Date: Tue, 1 Aug 2017 15:40:29 -0400
|
|
||||||
Subject: [PATCH 2/3] VS2015 Support: Backport "Issue #22919: Windows build
|
|
||||||
updated to support VC 14.0 (Visual Studio 2015), which will be used for the
|
|
||||||
official 3.5 release."
|
|
||||||
|
|
||||||
This commit is a partial backport of python/cpython@65e4cb1. It was
|
|
||||||
originally designed to work with python-cmake-buildsystem.
|
|
||||||
|
|
||||||
This patch do not backport the define "timezone" as "_timezone" as it was done in Python 3.x.
|
|
||||||
Keeping "timezone" is required in Python 2.7.x to avoid the following build issue
|
|
||||||
``error C2032: '__timezone': function cannot be member of struct '__timeb64'``
|
|
||||||
associated with `sys/timeb.h`. The need for `sys/timeb.h` was removed in Python 3.x in python/cpython@6fc4ade and python/cpython@0011124
|
|
||||||
but is still used in Python 2.7.x.
|
|
||||||
|
|
||||||
The following modules have NOT been backported:
|
|
||||||
|
|
||||||
* Lib/distutils/sysconfig
|
|
||||||
* Modules/socketmodule.c .... : Not required since changes related to WSA have been introduced in Python 3.x (see python/cpython@6b4883d)
|
|
||||||
* Tools/buildbot
|
|
||||||
* PCBuild
|
|
||||||
---
|
|
||||||
Lib/ctypes/util.py | 6 +++++-
|
|
||||||
Lib/distutils/command/build_ext.py | 2 +-
|
|
||||||
Lib/distutils/msvc9compiler.py | 3 +++
|
|
||||||
Lib/distutils/msvccompiler.py | 3 +++
|
|
||||||
Modules/posixmodule.c | 22 ++++++++++++++++++++--
|
|
||||||
Modules/timemodule.c | 4 ++--
|
|
||||||
PC/bdist_wininst/install.c | 29 ++++++-----------------------
|
|
||||||
PC/pyconfig.h | 7 +++++++
|
|
||||||
8 files changed, 47 insertions(+), 29 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
|
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
|
||||||
index ab10ec5..a163239 100644
|
index ab10ec5..6c43d82 100644
|
||||||
--- a/Lib/ctypes/util.py
|
--- a/Lib/ctypes/util.py
|
||||||
+++ b/Lib/ctypes/util.py
|
+++ b/Lib/ctypes/util.py
|
||||||
@@ -19,6 +19,8 @@ if os.name == "nt":
|
@@ -19,6 +19,8 @@ if os.name == "nt":
|
||||||
@ -57,7 +24,7 @@ index ab10ec5..a163239 100644
|
|||||||
# If python was built with in debug mode
|
# If python was built with in debug mode
|
||||||
import imp
|
import imp
|
||||||
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
|
||||||
index f1d184b..0851690 100644
|
index 65a60b5..b2ee260 100644
|
||||||
--- a/Lib/distutils/command/build_ext.py
|
--- a/Lib/distutils/command/build_ext.py
|
||||||
+++ b/Lib/distutils/command/build_ext.py
|
+++ b/Lib/distutils/command/build_ext.py
|
||||||
@@ -196,7 +196,7 @@ class build_ext (Command):
|
@@ -196,7 +196,7 @@ class build_ext (Command):
|
||||||
@ -70,7 +37,7 @@ index f1d184b..0851690 100644
|
|||||||
# win-amd64 or win-ia64
|
# win-amd64 or win-ia64
|
||||||
suffix = self.plat_name[4:]
|
suffix = self.plat_name[4:]
|
||||||
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py
|
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py
|
||||||
index f6de11c..ee61ac2 100644
|
index 9fe6417..57d42b7 100644
|
||||||
--- a/Lib/distutils/msvc9compiler.py
|
--- a/Lib/distutils/msvc9compiler.py
|
||||||
+++ b/Lib/distutils/msvc9compiler.py
|
+++ b/Lib/distutils/msvc9compiler.py
|
||||||
@@ -182,6 +182,9 @@ def get_build_version():
|
@@ -182,6 +182,9 @@ def get_build_version():
|
||||||
@ -98,7 +65,7 @@ index 0e69fd3..77025c6 100644
|
|||||||
# I don't think paths are affected by minor version in version 6
|
# I don't think paths are affected by minor version in version 6
|
||||||
if majorVersion == 6:
|
if majorVersion == 6:
|
||||||
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
|
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
|
||||||
index e73805f..90d5318 100644
|
index 7a1a694..7d07150 100644
|
||||||
--- a/Modules/posixmodule.c
|
--- a/Modules/posixmodule.c
|
||||||
+++ b/Modules/posixmodule.c
|
+++ b/Modules/posixmodule.c
|
||||||
@@ -558,15 +558,33 @@ _PyInt_FromDev(PY_LONG_LONG v)
|
@@ -558,15 +558,33 @@ _PyInt_FromDev(PY_LONG_LONG v)
|
||||||
@ -138,7 +105,7 @@ index e73805f..90d5318 100644
|
|||||||
#define FOPEN 0x01
|
#define FOPEN 0x01
|
||||||
#define _NO_CONSOLE_FILENO (intptr_t)-2
|
#define _NO_CONSOLE_FILENO (intptr_t)-2
|
||||||
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
|
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
|
||||||
index 12c43b0..db190b8 100644
|
index 61b8d61..7678283 100644
|
||||||
--- a/Modules/timemodule.c
|
--- a/Modules/timemodule.c
|
||||||
+++ b/Modules/timemodule.c
|
+++ b/Modules/timemodule.c
|
||||||
@@ -808,7 +808,7 @@ inittimezone(PyObject *m) {
|
@@ -808,7 +808,7 @@ inittimezone(PyObject *m) {
|
||||||
@ -160,10 +127,10 @@ index 12c43b0..db190b8 100644
|
|||||||
#endif
|
#endif
|
||||||
PyModule_AddIntConstant(m, "daylight", daylight);
|
PyModule_AddIntConstant(m, "daylight", daylight);
|
||||||
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c
|
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c
|
||||||
index f1cc7fe..5b11dcc 100644
|
index e3b52a8..a7d1c2c 100644
|
||||||
--- a/PC/bdist_wininst/install.c
|
--- a/PC/bdist_wininst/install.c
|
||||||
+++ b/PC/bdist_wininst/install.c
|
+++ b/PC/bdist_wininst/install.c
|
||||||
@@ -1184,7 +1184,7 @@ static void CenterWindow(HWND hwnd)
|
@@ -1185,7 +1185,7 @@ static void CenterWindow(HWND hwnd)
|
||||||
|
|
||||||
#include <prsht.h>
|
#include <prsht.h>
|
||||||
|
|
||||||
@ -172,7 +139,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
IntroDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
IntroDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
LPNMHDR lpnm;
|
LPNMHDR lpnm;
|
||||||
@@ -1533,7 +1533,7 @@ SCHEME *GetScheme(int major, int minor)
|
@@ -1534,7 +1534,7 @@ SCHEME *GetScheme(int major, int minor)
|
||||||
return old_scheme;
|
return old_scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +148,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
SelectPythonDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
SelectPythonDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
LPNMHDR lpnm;
|
LPNMHDR lpnm;
|
||||||
@@ -1835,7 +1835,7 @@ static void CloseLogfile(void)
|
@@ -1836,7 +1836,7 @@ static void CloseLogfile(void)
|
||||||
fclose(logfile);
|
fclose(logfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +157,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
LPNMHDR lpnm;
|
LPNMHDR lpnm;
|
||||||
@@ -1990,7 +1990,7 @@ InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
@@ -1991,7 +1991,7 @@ InstallFilesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -199,7 +166,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
FinishedDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
FinishedDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
LPNMHDR lpnm;
|
LPNMHDR lpnm;
|
||||||
@@ -2166,23 +2166,6 @@ BOOL NeedAutoUAC()
|
@@ -2167,23 +2167,6 @@ BOOL NeedAutoUAC()
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +190,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
// Spawn ourself as an elevated application. On failure, a message is
|
// Spawn ourself as an elevated application. On failure, a message is
|
||||||
// displayed to the user - but this app will always terminate, even
|
// displayed to the user - but this app will always terminate, even
|
||||||
// on error.
|
// on error.
|
||||||
@@ -2238,7 +2221,7 @@ int DoInstall(void)
|
@@ -2239,7 +2222,7 @@ int DoInstall(void)
|
||||||
|
|
||||||
// See if we need to do the Vista UAC magic.
|
// See if we need to do the Vista UAC magic.
|
||||||
if (strcmp(user_access_control, "force")==0) {
|
if (strcmp(user_access_control, "force")==0) {
|
||||||
@ -232,7 +199,7 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
SpawnUAC();
|
SpawnUAC();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2246,7 +2229,7 @@ int DoInstall(void)
|
@@ -2247,7 +2230,7 @@ int DoInstall(void)
|
||||||
} else if (strcmp(user_access_control, "auto")==0) {
|
} else if (strcmp(user_access_control, "auto")==0) {
|
||||||
// Check if it looks like we need UAC control, based
|
// Check if it looks like we need UAC control, based
|
||||||
// on how Python itself was installed.
|
// on how Python itself was installed.
|
||||||
@ -242,12 +209,12 @@ index f1cc7fe..5b11dcc 100644
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
|
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
|
||||||
index b60af1e..b517146 100644
|
index 0cbd236..d896a38 100644
|
||||||
--- a/PC/pyconfig.h
|
--- a/PC/pyconfig.h
|
||||||
+++ b/PC/pyconfig.h
|
+++ b/PC/pyconfig.h
|
||||||
@@ -231,6 +231,13 @@ typedef int pid_t;
|
@@ -226,6 +226,13 @@ typedef int pid_t;
|
||||||
#define hypot _hypot
|
#define Py_IS_FINITE(X) _finite(X)
|
||||||
#endif
|
#define copysign _copysign
|
||||||
|
|
||||||
+/* VS 2015 defines these names with a leading underscore */
|
+/* VS 2015 defines these names with a leading underscore */
|
||||||
+#if _MSC_VER >= 1900
|
+#if _MSC_VER >= 1900
|
||||||
@ -259,6 +226,3 @@ index b60af1e..b517146 100644
|
|||||||
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
|
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
|
||||||
#if _MSC_VER >= 1400 && _MSC_VER < 1600
|
#if _MSC_VER >= 1400 && _MSC_VER < 1600
|
||||||
#define HAVE_SXS 1
|
#define HAVE_SXS 1
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
|
||||||
|
index 92b32da..8dac984 100644
|
||||||
--- a/PCbuild/pythoncore.vcxproj
|
--- a/PCbuild/pythoncore.vcxproj
|
||||||
+++ b/PCbuild/pythoncore.vcxproj
|
+++ b/PCbuild/pythoncore.vcxproj
|
||||||
@@ -41,7 +41,7 @@
|
@@ -41,7 +41,7 @@
|
||||||
@ -13,8 +15,8 @@
|
|||||||
<ClCompile>
|
<ClCompile>
|
||||||
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<AdditionalIncludeDirectories>$(PySourcePath)Python;$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(PySourcePath)Python;$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
- <PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
- <PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED;_CRT_SECURE_NO_WARNINGS;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
+ <PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_NO_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
+ <PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_NO_ENABLE_SHARED;_CRT_SECURE_NO_WARNINGS;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
@ -35,4 +37,3 @@
|
|||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\Include\abstract.h" />
|
<ClInclude Include="..\Include\abstract.h" />
|
||||||
--
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
|
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
|
||||||
|
index 8dac984..c18ad1e 100644
|
||||||
--- a/PCbuild/pythoncore.vcxproj
|
--- a/PCbuild/pythoncore.vcxproj
|
||||||
+++ b/PCbuild/pythoncore.vcxproj
|
+++ b/PCbuild/pythoncore.vcxproj
|
||||||
@@ -71,6 +71,10 @@
|
@@ -71,6 +71,10 @@
|
||||||
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<AdditionalIncludeDirectories>$(PySourcePath)Python;$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(PySourcePath)Python;$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_NO_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_USRDLL;Py_BUILD_CORE;Py_NO_ENABLE_SHARED;_CRT_SECURE_NO_WARNINGS;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">MultiThreadedDebug</RuntimeLibrary>
|
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">MultiThreadedDebug</RuntimeLibrary>
|
||||||
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">MultiThreadedDebug</RuntimeLibrary>
|
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">MultiThreadedDebug</RuntimeLibrary>
|
||||||
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MultiThreaded</RuntimeLibrary>
|
+ <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MultiThreaded</RuntimeLibrary>
|
||||||
@ -11,5 +13,3 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
--
|
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Source: python2
|
Source: python2
|
||||||
Version: 2.7.15-2
|
Version: 2.7.18
|
||||||
Description: The Python programming language as an embeddable library
|
Description: The Python programming language as an embeddable library
|
||||||
|
@ -9,7 +9,7 @@ endif()
|
|||||||
|
|
||||||
set(PYTHON_VERSION_MAJOR 2)
|
set(PYTHON_VERSION_MAJOR 2)
|
||||||
set(PYTHON_VERSION_MINOR 7)
|
set(PYTHON_VERSION_MINOR 7)
|
||||||
set(PYTHON_VERSION_PATCH 15)
|
set(PYTHON_VERSION_PATCH 18)
|
||||||
set(PYTHON_VERSION ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.${PYTHON_VERSION_PATCH})
|
set(PYTHON_VERSION ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.${PYTHON_VERSION_PATCH})
|
||||||
|
|
||||||
set(_PYTHON_PATCHES "")
|
set(_PYTHON_PATCHES "")
|
||||||
@ -27,7 +27,7 @@ endif()
|
|||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz
|
URLS https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz
|
||||||
FILENAME Python-${PYTHON_VERSION}.tar.xz
|
FILENAME Python-${PYTHON_VERSION}.tar.xz
|
||||||
SHA512 27ea43eb45fc68f3d2469d5f07636e10801dee11635a430ec8ec922ed790bb426b072da94df885e4dfa1ea8b7a24f2f56dd92f9b0f51e162330f161216bd6de6
|
SHA512 a7bb62b51f48ff0b6df0b18f5b0312a523e3110f49c3237936bfe56ed0e26838c0274ff5401bda6fc21bf24337477ccac49e8026c5d651e4b4cafb5eb5086f6c
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_extract_source_archive_ex(
|
vcpkg_extract_source_archive_ex(
|
||||||
|
@ -170,17 +170,17 @@ function(vcpkg_find_acquire_program VAR)
|
|||||||
elseif(VAR MATCHES "PYTHON2")
|
elseif(VAR MATCHES "PYTHON2")
|
||||||
if(CMAKE_HOST_WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
set(PROGNAME python)
|
set(PROGNAME python)
|
||||||
set(PYTHON_VERSION 2.7.16)
|
set(PYTHON_VERSION 2.7.18)
|
||||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
if (VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
||||||
set(SUBDIR "python-${PYTHON_VERSION}-x86")
|
set(SUBDIR "python-${PYTHON_VERSION}-x86")
|
||||||
set(URL "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}.msi")
|
set(URL "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}.msi")
|
||||||
set(ARCHIVE "python-${PYTHON_VERSION}.msi")
|
set(ARCHIVE "python-${PYTHON_VERSION}.msi")
|
||||||
set(HASH c34a6fa2438682104dccb53650a2bdb79eac7996deff075201a0f71bb835d60d3ed866652a1931f15a29510fe8e1009ac04e423b285122d2e5747fefc4c10254)
|
set(HASH 2c112733c777ddbf189b0a54047a9d5851ebce0564cc38b9687d79ce6c7a09006109dbad8627fb1a60c3ad55e261db850d9dfa454af0533b460b2afc316fe115)
|
||||||
else()
|
else()
|
||||||
set(SUBDIR "python-${PYTHON_VERSION}-x64")
|
set(SUBDIR "python-${PYTHON_VERSION}-x64")
|
||||||
set(URL "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}.amd64.msi")
|
set(URL "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}.amd64.msi")
|
||||||
set(ARCHIVE "python-${PYTHON_VERSION}.amd64.msi")
|
set(ARCHIVE "python-${PYTHON_VERSION}.amd64.msi")
|
||||||
set(HASH 47c1518d1da939e3ba6722c54747778b93a44c525bcb358b253c23b2510374a49a43739c8d0454cedade858f54efa6319763ba33316fdc721305bc457efe4ffb)
|
set(HASH 6a81a413b80fd39893e7444fd47efa455d240cbb77a456c9d12f7cf64962b38c08cfa244cd9c50a65947c40f936c6c8c5782f7236d7b92445ab3dd01e82af23e)
|
||||||
endif()
|
endif()
|
||||||
set(PATHS ${DOWNLOADS}/tools/python/${SUBDIR})
|
set(PATHS ${DOWNLOADS}/tools/python/${SUBDIR})
|
||||||
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
@ -4985,7 +4985,7 @@
|
|||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"python2": {
|
"python2": {
|
||||||
"baseline": "2.7.15-2",
|
"baseline": "2.7.18",
|
||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"python3": {
|
"python3": {
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "b187917ff4190f5989d395a9abe3bdae93e0ee95",
|
||||||
|
"version-string": "2.7.18",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "94dd5dc700302ff87a8724504676d674d3554b81",
|
"git-tree": "94dd5dc700302ff87a8724504676d674d3554b81",
|
||||||
"version-string": "2.7.15-2",
|
"version-string": "2.7.15-2",
|
||||||
|
Loading…
Reference in New Issue
Block a user