append(): Fixing the test for convertability after consultation with
[python/dscho.git] / Mac / Resources / version.r
blob85d7466136e5ec4fe628b4752bc8c3ae417653cd
1 /*
2 ** Create the 'vers' version resource from information in the
3 ** Python include files.
4 */
6 #include "Types.r"
8 #include "patchlevel.h"
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
21 resource 'vers' (1) {
22 PY_MAJOR_VERSION,
23 (PY_MINOR_VERSION<<4) | (PY_MICRO_VERSION),
24 V_RELEASE,
25 PY_RELEASE_SERIAL,
27 PY_VERSION,
28 $$Format("%s, © Python Software Foundation %s",
29 PY_VERSION, $$Date)