diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-29 16:15:52 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-29 16:15:52 (GMT) |
commit | d2d2b20e15ce88ad86390c7861fea470a8fad5ea (patch) | |
tree | b1c453f4d9c9cf78586421537a9101b781cc451f /Mac/Resources/version.r | |
parent | 2eb07f0945abc81cd463bbd8e0d371272a16bed3 (diff) | |
download | cpython-d2d2b20e15ce88ad86390c7861fea470a8fad5ea.zip cpython-d2d2b20e15ce88ad86390c7861fea470a8fad5ea.tar.gz cpython-d2d2b20e15ce88ad86390c7861fea470a8fad5ea.tar.bz2 |
Pythonpath converted to Rez source, and vers resource removed from
bundle to its own Rez source file. With these changes various resources
are all set automatically from .h files.
Diffstat (limited to 'Mac/Resources/version.r')
-rw-r--r-- | Mac/Resources/version.r | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Mac/Resources/version.r b/Mac/Resources/version.r new file mode 100644 index 0000000..4e52e6a --- /dev/null +++ b/Mac/Resources/version.r @@ -0,0 +1,30 @@ +/* +** Create the 'vers' version resource from information in the +** Python include files. +*/ + +#include "Types.r" + +#include "patchlevel.h" + +/* Invent the Mac version from the Python version */ +#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA +#define V_RELEASE alpha +#endif +#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_BETA +#define V_RELEASE beta +#endif +#ifndef V_RELEASE +#define V_RELEASE final +#endif + +resource 'vers' (1) { + PY_MAJOR_VERSION, + (PY_MINOR_VERSION<<4) | (PY_MICRO_VERSION), + V_RELEASE, + PY_RELEASE_SERIAL, + 0, + PY_VERSION, + $$Format("%s, © Stichting Mathematisch Centrum %s", + PY_VERSION, $$Date) +}; |