mirror of
https://github.com/python/cpython.git
synced 2024-12-13 03:45:42 +08:00
d2d2b20e15
bundle to its own Rez source file. With these changes various resources are all set automatically from .h files.
31 lines
610 B
R
31 lines
610 B
R
/*
|
|
** 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)
|
|
};
|