diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-08 21:08:14 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-08 21:34:44 -0400 |
commit | 5afbe712db5cc68213a24c45396ffb43fab05e3e (patch) | |
tree | e811f7b05a129c8220b33d6dbef301ac9ffc7da0 /src/python-systemd/id128.c | |
parent | 6866780115a7c0af034f287d965f4bf6b02c1e6d (diff) |
systemd-python: add __version__ strings
Diffstat (limited to 'src/python-systemd/id128.c')
-rw-r--r-- | src/python-systemd/id128.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python-systemd/id128.c b/src/python-systemd/id128.c index 1c2fe5dd0b..ec1d9fb4a2 100644 --- a/src/python-systemd/id128.c +++ b/src/python-systemd/id128.c @@ -19,8 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <stdbool.h> - #include <Python.h> #include <systemd/sd-messages.h> @@ -126,6 +124,7 @@ PyMODINIT_FUNC initid128(void) { #define JOINER ; #include "id128-constants.h" #undef JOINER + PyModule_AddStringConstant(m, "__version__", PACKAGE_VERSION); } #else @@ -149,7 +148,7 @@ PyMODINIT_FUNC PyInit_id128(void) { #define JOINER || #include "id128-constants.h" #undef JOINER - false) { + PyModule_AddStringConstant(m, "__version__", PACKAGE_VERSION)) { Py_DECREF(m); return NULL; } |