Mercurial > cpython-lru_cache-weakref
comparison PC/python_nt.rc @ 30758:26bc01944ae8 2.3
Backport from the trunk.
To build on windows, the manual editing of the python_nt.rc file to
change the version number is no longer required.
Instead, a make_versioninfo.exe is compiled, which spits out an
include file for python_nt.rc.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Wed, 22 Oct 2003 19:38:10 +0000 |
| parents | f29f108ab49e |
| children | a38cd63d17a7 |
comparison
equal
deleted
inserted
replaced
| 30751:6fdde96a7222 | 30758:26bc01944ae8 |
|---|---|
| 4 #include "winver.h" | 4 #include "winver.h" |
| 5 | 5 |
| 6 #define MS_WINDOWS | 6 #define MS_WINDOWS |
| 7 #include "modsupport.h" | 7 #include "modsupport.h" |
| 8 #include "patchlevel.h" | 8 #include "patchlevel.h" |
| 9 | 9 #ifdef _DEBUG |
| 10 /* Across releases, change: | 10 # include "pythonnt_rc_d.h" |
| 11 * MS_DLL_ID if the minor version number changes. | 11 #else |
| 12 * PYTHON_DLL_NAME ditto. | 12 # include "pythonnt_rc.h" |
| 13 * MS_DLL_ID must match PY_VERSION in the Windows install script. | |
| 14 */ | |
| 15 #define MS_DLL_ID "2.3" | |
| 16 | |
| 17 #ifndef PYTHON_DLL_NAME | |
| 18 #define PYTHON_DLL_NAME "python23.dll" | |
| 19 #endif | 13 #endif |
| 20 | |
| 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 */ | |
| 27 | |
| 28 | |
| 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.3.2, | |
| 37 * PY_MICRO_VERSION = 2 | |
| 38 * PY_RELEASE_LEVEL = 'final' = 0xf | |
| 39 * PY_RELEASE_SERIAL = 0 | |
| 40 * | |
| 41 * and 2*1000 + 15*10 + 0 = 2150 | |
| 42 */ | |
| 43 #define FIELD3 2150 | |
| 44 | 14 |
| 45 /* e.g., 2.1a2 | 15 /* e.g., 2.1a2 |
| 46 * PY_VERSION comes from patchevel.h | 16 * PY_VERSION comes from patchevel.h |
| 47 */ | 17 */ |
| 48 #define PYTHON_VERSION PY_VERSION "\0" | 18 #define PYTHON_VERSION PY_VERSION "\0" |
