More installation info. Bump alpha version.
[python/dscho.git] / PC / python_nt.rc
bloba4e4849dfbcf171e2e9dc0df2cc3bac3011eb445
1 // Resource script for Python core DLL.
2 // Currently only holds version information.
3 //
4 #include "winver.h"
6 #define MS_WINDOWS
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.
14  */
15 #define MS_DLL_ID "2.3"
17 #ifndef PYTHON_DLL_NAME
18 #define PYTHON_DLL_NAME "python23.dll"
19 #endif
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.
26  */
29 /* This is what we'd like FIELD3 to be:
30  *
31  * #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL)
32  *
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:
35  *
36  * For 2.3a0,
37  * PY_MICRO_VERSION = 0
38  * PY_RELEASE_LEVEL = 'alpha' = 0xa
39  * PY_RELEASE_SERIAL = 1
40  *
41  * and 0*1000 + 10*10 + 1 = 101
42  */
43 #define FIELD3 101
45 /* e.g., 2.1a2
46  * PY_VERSION comes from patchevel.h
47  */
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"
53 #endif
54 #if PY_RELEASE_LEVEL > 99
55 #   error "PY_RELEASE_LEVEL > 99"
56 #endif
57 #if PY_RELEASE_SERIAL > 9
58 #   error "PY_RELEASE_SERIAL > 9"
59 #endif
60 #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
62 // String Tables
63 STRINGTABLE DISCARDABLE
64 BEGIN
65     1000,   MS_DLL_ID
66 END
68 /////////////////////////////////////////////////////////////////////////////
70 // Version
73 VS_VERSION_INFO VERSIONINFO
74  FILEVERSION PYVERSION64
75  PRODUCTVERSION PYVERSION64
76  FILEFLAGSMASK 0x3fL
77 #ifdef _DEBUG
78  FILEFLAGS 0x1L
79 #else
80  FILEFLAGS 0x0L
81 #endif
82  FILEOS 0x40004L
83  FILETYPE 0x1L
84  FILESUBTYPE 0x0L
85 BEGIN
86     BLOCK "StringFileInfo"
87     BEGIN
88         BLOCK "000004b0"
89         BEGIN
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
98         END
99     END
100     BLOCK "VarFileInfo"
101     BEGIN
102         VALUE "Translation", 0x0, 1200
103     END