blob: 4e52e6a63905e985acd1f60c707199fc404d9587 [file] [log] [blame]
Jack Jansend2d2b201999-01-29 16:15:52 +00001/*
2** Create the 'vers' version resource from information in the
3** Python include files.
4*/
5
6#include "Types.r"
7
8#include "patchlevel.h"
9
10/* Invent the Mac version from the Python version */
11#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA
12#define V_RELEASE alpha
13#endif
14#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_BETA
15#define V_RELEASE beta
16#endif
17#ifndef V_RELEASE
18#define V_RELEASE final
19#endif
20
21resource 'vers' (1) {
22 PY_MAJOR_VERSION,
23 (PY_MINOR_VERSION<<4) | (PY_MICRO_VERSION),
24 V_RELEASE,
25 PY_RELEASE_SERIAL,
26 0,
27 PY_VERSION,
28 $$Format("%s, © Stichting Mathematisch Centrum %s",
29 PY_VERSION, $$Date)
30};