summaryrefslogtreecommitdiffstats
path: root/PC/python_nt.rc
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-10-10 16:57:45 (GMT)
committerThomas Heller <theller@ctypes.org>2003-10-10 16:57:45 (GMT)
commit13dbabe46e3b9f788873377b05a237c5bebfd8f9 (patch)
treefc7bbf32087e3d9e01d290e63679301f97a1e349 /PC/python_nt.rc
parentb97f0b7654ca5d6d4e15937e87a539a38c4d4c4b (diff)
downloadcpython-13dbabe46e3b9f788873377b05a237c5bebfd8f9.zip
cpython-13dbabe46e3b9f788873377b05a237c5bebfd8f9.tar.gz
cpython-13dbabe46e3b9f788873377b05a237c5bebfd8f9.tar.bz2
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. Will backport to 2.3
Diffstat (limited to 'PC/python_nt.rc')
-rw-r--r--PC/python_nt.rc38
1 files changed, 4 insertions, 34 deletions
diff --git a/PC/python_nt.rc b/PC/python_nt.rc
index 8b3858b..3cdc93c 100644
--- a/PC/python_nt.rc
+++ b/PC/python_nt.rc
@@ -6,42 +6,12 @@
#define MS_WINDOWS
#include "modsupport.h"
#include "patchlevel.h"
-
-/* Across releases, change:
- * MS_DLL_ID if the minor version number changes.
- * PYTHON_DLL_NAME ditto.
- * MS_DLL_ID must match PY_VERSION in the Windows install script.
- */
-#define MS_DLL_ID "2.4"
-
-#ifndef PYTHON_DLL_NAME
-#define PYTHON_DLL_NAME "python24.dll"
+#ifdef _DEBUG
+# include "pythonnt_rc_d.h"
+#else
+# include "pythonnt_rc.h"
#endif
-/* Nothing below this should need to be changed except for copyright
- * notices, company name, and FIELD3. Unfortunately, all attempts
- * to get the resource compiler to do arithmetic in macros have
- * failed miserably -- it gives syntax errors, ignores operators,
- * or does stuff that's simply bizarre.
- */
-
-
-/* This is what we'd like FIELD3 to be:
- *
- * #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL)
- *
- * but that neither gives an error nor comes anywhere close to working. The
- * following comment and #define are output from PCbuild\field3.py:
- *
- * For 2.4a0,
- * PY_MICRO_VERSION = 0
- * PY_RELEASE_LEVEL = 'alpha' = 0xa
- * PY_RELEASE_SERIAL = 0
- *
- * and 0*1000 + 10*10 + 0 = 100
- */
-#define FIELD3 100
-
/* e.g., 2.1a2
* PY_VERSION comes from patchevel.h
*/