1 // Resource script for Python core DLL.
2 // Currently only holds version information.
7 #include "modsupport.h"
8 #include "patchlevel.h"
10 /* Across releases, change:
11 * MS_DLL_ID if the minor version number changes.
12 * PYTHON_DLL_NAME ditto.
13 * MS_DLL_ID must match PY_VERSION in the Windows install script.
15 #define MS_DLL_ID "2.3"
17 #ifndef PYTHON_DLL_NAME
18 #define PYTHON_DLL_NAME "python23.dll"
21 /* Nothing below this should need to be changed except for copyright
22 * notices, company name, and FIELD3. Unfortunately, all attempts
23 * to get the resource compiler to do arithmetic in macros have
24 * failed miserably -- it gives syntax errors, ignores operators,
25 * or does stuff that's simply bizarre.
29 /* This is what we'd like FIELD3 to be:
31 * #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL)
33 * but that neither gives an error nor comes anywhere close to working. The
34 * following comment and #define are output from PCbuild\field3.py:
37 * PY_MICRO_VERSION = 0
38 * PY_RELEASE_LEVEL = 'alpha' = 0xa
39 * PY_RELEASE_SERIAL = 1
41 * and 0*1000 + 10*10 + 1 = 101
46 * PY_VERSION comes from patchevel.h
48 #define PYTHON_VERSION PY_VERSION "\0"
50 /* 64-bit version number as comma-separated list of 4 16-bit ints */
51 #if PY_MICRO_VERSION > 64
52 # error "PY_MICRO_VERSION > 64"
54 #if PY_RELEASE_LEVEL > 99
55 # error "PY_RELEASE_LEVEL > 99"
57 #if PY_RELEASE_SERIAL > 9
58 # error "PY_RELEASE_SERIAL > 9"
60 #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
63 STRINGTABLE DISCARDABLE
68 /////////////////////////////////////////////////////////////////////////////
73 VS_VERSION_INFO VERSIONINFO
74 FILEVERSION PYVERSION64
75 PRODUCTVERSION PYVERSION64
86 BLOCK "StringFileInfo"
90 VALUE "CompanyName", "PythonLabs at Zope Corporation\0"
91 VALUE "FileDescription", "Python Core\0"
92 VALUE "FileVersion", PYTHON_VERSION
93 VALUE "InternalName", "Python DLL\0"
94 VALUE "LegalCopyright", "Copyright © 2001-2002 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC.\0"
95 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
96 VALUE "ProductName", "Python\0"
97 VALUE "ProductVersion", PYTHON_VERSION
102 VALUE "Translation", 0x0, 1200