Mercurial > cpython-lru_cache-weakref
annotate PC/python_nt.rc @ 24042:63fbbed10714 legacy-trunk
Simplify HTTPSConnection constructor.
See discussion in SF bug 458463.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Fri, 28 Jun 2002 23:38:14 +0000 |
| parents | 26a54d3f55e4 |
| children | c59ce513def6 |
| 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 "winver.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 #define MS_WINDOWS |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 #include "modsupport.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 #include "patchlevel.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 |
|
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
|
10 /* 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
|
11 * 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
|
12 * 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
|
13 * 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
|
14 */ |
|
21525
268b57d9daed
Windows build: close out 2.2, prep for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
19375
diff
changeset
|
15 #define MS_DLL_ID "2.3" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
17 #ifndef PYTHON_DLL_NAME |
|
17588
5a5805a45dbf
Move Windows stuff to 2.2, so CVS builds won't interfere with 2.1
Tim Peters <tim.peters@gmail.com>
parents:
17026
diff
changeset
|
18 #define PYTHON_DLL_NAME "python22.dll" |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
19 #endif |
|
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
20 |
|
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
|
21 /* 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
|
22 * 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
|
23 */ |
|
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 /* 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
|
26 * 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
|
27 */ |
|
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 #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
|
29 |
|
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 /* 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
|
31 #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
|
32 # 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
|
33 #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
|
34 #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
|
35 # 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
|
36 #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
|
37 #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
|
38 # 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
|
39 #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
|
40 #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
|
41 #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
|
42 |
|
6353
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
43 // 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
|
44 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
|
45 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
|
46 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
|
47 END |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
48 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
49 ///////////////////////////////////////////////////////////////////////////// |
|
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 // Version |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
52 // |
|
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 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
|
55 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
|
56 PRODUCTVERSION PYVERSION64 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
57 FILEFLAGSMASK 0x3fL |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
58 #ifdef _DEBUG |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
59 FILEFLAGS 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
60 #else |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
61 FILEFLAGS 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
62 #endif |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
63 FILEOS 0x40004L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
64 FILETYPE 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
65 FILESUBTYPE 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
66 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
67 BLOCK "StringFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
68 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
69 BLOCK "000004b0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
70 BEGIN |
|
19375
fd119899045c
Windows fiddling for 2.2a2: bump build number; update copyright and
Tim Peters <tim.peters@gmail.com>
parents:
17588
diff
changeset
|
71 VALUE "CompanyName", "PythonLabs at Zope Corporation\0" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
72 VALUE "FileDescription", "Python Core\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
73 VALUE "FileVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
74 VALUE "InternalName", "Python DLL\0" |
|
21525
268b57d9daed
Windows build: close out 2.2, prep for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
19375
diff
changeset
|
75 VALUE "LegalCopyright", "Copyright © 2001-2002 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 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
|
76 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
77 VALUE "ProductName", "Python\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
78 VALUE "ProductVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
79 END |
|
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 BLOCK "VarFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
82 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
83 VALUE "Translation", 0x0, 1200 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
84 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
85 END |
