From ba80c62d42e822f2b2677555fcd30f4cea319bb4 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Thu, 15 Jan 2015 09:10:43 -0800 Subject: Issue 23018: Add version info to python[w].exe --- PC/python_ver_rc.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 PC/python_ver_rc.h (limited to 'PC/python_ver_rc.h') diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h new file mode 100644 index 0000000000..8794cad930 --- /dev/null +++ b/PC/python_ver_rc.h @@ -0,0 +1,35 @@ +// Resource script for Python core DLL. +// Currently only holds version information. +// +#include "winver.h" + +#define PYTHON_COMPANY "Python Software Foundation" +#define PYTHON_COPYRIGHT "Copyright © 2001-2014 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC." + +#define MS_WINDOWS +#include "modsupport.h" +#include "patchlevel.h" +#ifdef _DEBUG +# include "pythonnt_rc_d.h" +# define PYTHON_DEBUG_EXT "_d" +#else +# include "pythonnt_rc.h" +# define PYTHON_DEBUG_EXT +#endif + +/* e.g., 3.3.0a1 + * PY_VERSION comes from patchlevel.h + */ +#define PYTHON_VERSION PY_VERSION "\0" + +/* 64-bit version number as comma-separated list of 4 16-bit ints */ +#if PY_MICRO_VERSION > 64 +# error "PY_MICRO_VERSION > 64" +#endif +#if PY_RELEASE_LEVEL > 99 +# error "PY_RELEASE_LEVEL > 99" +#endif +#if PY_RELEASE_SERIAL > 9 +# error "PY_RELEASE_SERIAL > 9" +#endif +#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION -- cgit v1.2.1 From b871e8de3a13b848b17328eb34716e3a627f2b1f Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 17 Jan 2015 14:29:01 -0800 Subject: Updated copyright year (after my patch from last year reverted it) --- PC/python_ver_rc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PC/python_ver_rc.h') diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h index 8794cad930..1f1bebc51f 100644 --- a/PC/python_ver_rc.h +++ b/PC/python_ver_rc.h @@ -4,7 +4,7 @@ #include "winver.h" #define PYTHON_COMPANY "Python Software Foundation" -#define PYTHON_COPYRIGHT "Copyright © 2001-2014 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC." +#define PYTHON_COPYRIGHT "Copyright © 2001-2015 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC." #define MS_WINDOWS #include "modsupport.h" -- cgit v1.2.1 From 82b2cbdae52450650649fcc0cb4adcf1bf17baba Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 20 Feb 2015 09:08:48 -0800 Subject: Closes #23018: Replace copyright symbol with escape. --- PC/python_ver_rc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PC/python_ver_rc.h') diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h index 1f1bebc51f..827e9be528 100644 --- a/PC/python_ver_rc.h +++ b/PC/python_ver_rc.h @@ -4,7 +4,7 @@ #include "winver.h" #define PYTHON_COMPANY "Python Software Foundation" -#define PYTHON_COPYRIGHT "Copyright © 2001-2015 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC." +#define PYTHON_COPYRIGHT "Copyright \xA9 2001-2015 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC." #define MS_WINDOWS #include "modsupport.h" -- cgit v1.2.1