summaryrefslogtreecommitdiff
path: root/PC/python_ver_rc.h
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-01-15 09:10:43 -0800
committerSteve Dower <steve.dower@microsoft.com>2015-01-15 09:10:43 -0800
commitab0406475698ceb374be38e5fe54eb884e9ec59d (patch)
treec0ffad66993d6d486e18842e5282fb68f4c02ba4 /PC/python_ver_rc.h
parent2587952f2fc4abb3adf6a838bf8a1fc3997c81be (diff)
downloadcpython-git-ab0406475698ceb374be38e5fe54eb884e9ec59d.tar.gz
Issue 23018: Add version info to python[w].exe
Diffstat (limited to 'PC/python_ver_rc.h')
-rw-r--r--PC/python_ver_rc.h35
1 files changed, 35 insertions, 0 deletions
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