Mercurial > cpython-lru_cache-weakref
annotate PC/python_nt.rc @ 17026:f4146ca0f292 legacy-trunk
Magic strings in both Python and the Wise installer define the registry key
to be used in Windows. They got out of synch. Repaired that, and added
comments to each one pointing at the other.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sun, 11 Mar 2001 04:30:35 +0000 |
| parents | 771dbb155575 |
| children | 5c62efbce4fa 5a5805a45dbf |
| rev | line source |
|---|---|
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 // Resource script for Python core DLL. |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 // Currently only holds version information. |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
4 #include "ver.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 #include "winver.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 #define MS_WINDOWS |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 #include "modsupport.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 #include "patchlevel.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
10 |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
11 /* Across releases, change: |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
12 * MS_DLL_ID if the minor version number changes. |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
13 * PYTHON_DLL_NAME ditto. |
|
17026
f4146ca0f292
Magic strings in both Python and the Wise installer define the registry key
Tim Peters <tim.peters@gmail.com>
parents:
16487
diff
changeset
|
14 * MS_DLL_ID must match PY_VERSION in the Windows install script. |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
15 */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
16 #define MS_DLL_ID "2.1" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
17 |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
18 #ifndef PYTHON_DLL_NAME |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
19 #define PYTHON_DLL_NAME "python21.dll" |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
20 #endif |
|
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
21 |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
22 /* Nothing below this should need to be changed except for copyright |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
23 * notices and company name. |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
24 */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
25 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
26 /* e.g., 2.1a2 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
27 * PY_VERSION comes from patchevel.h |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
28 */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
29 #define PYTHON_VERSION PY_VERSION "\0" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
30 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
31 /* 64-bit version number as comma-separated list of 4 16-bit ints */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
32 #if PY_MICRO_VERSION > 64 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
33 # error "PY_MICRO_VERSION > 64" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
34 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
35 #if PY_RELEASE_LEVEL > 99 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
36 # error "PY_RELEASE_LEVEL > 99" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
37 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
38 #if PY_RELEASE_SERIAL > 9 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
39 # error "PY_RELEASE_SERIAL > 9" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
40 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
41 #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL) |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
42 #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
43 |
|
6353
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
44 // String Tables |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
45 STRINGTABLE DISCARDABLE |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
46 BEGIN |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
47 1000, MS_DLL_ID |
|
6353
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
48 END |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
49 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
50 ///////////////////////////////////////////////////////////////////////////// |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
51 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
52 // Version |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
53 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
54 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
55 VS_VERSION_INFO VERSIONINFO |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
56 FILEVERSION PYVERSION64 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
57 PRODUCTVERSION PYVERSION64 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
58 FILEFLAGSMASK 0x3fL |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
59 #ifdef _DEBUG |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
60 FILEFLAGS 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
61 #else |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
62 FILEFLAGS 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
63 #endif |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
64 FILEOS 0x40004L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
65 FILETYPE 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
66 FILESUBTYPE 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
67 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
68 BLOCK "StringFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
69 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
70 BLOCK "000004b0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
71 BEGIN |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
72 VALUE "CompanyName", "Digital Creations 2\0" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
73 VALUE "FileDescription", "Python Core\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
74 VALUE "FileVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
75 VALUE "InternalName", "Python DLL\0" |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
76 VALUE "LegalCopyright", "Copyright © 2000, 2001 Guido van Rossum. Copyright © 2000 BeOpen.com. Copyright © 1995-2000 CNRI. Copyright © 1991-1995 SMC.\0" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
77 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
78 VALUE "ProductName", "Python\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
79 VALUE "ProductVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
80 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
81 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
82 BLOCK "VarFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
83 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
84 VALUE "Translation", 0x0, 1200 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
85 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
86 END |
