summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-06-28 13:32:03 -0400
committerZbyszek Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-12 11:02:30 +0200
commit557184bb56240bfcf05d250e5bf9049eaf6d0ec5 (patch)
tree9475eac39f8fdb607c8db1aa61380906adf8cf4d /setup.py
parent3c089ad48eb899b332babab380c5f1782a2e04ad (diff)
downloadpython-systemd-557184bb56240bfcf05d250e5bf9049eaf6d0ec5.tar.gz
Add frontend module in pure-Python and hide old module
journald.send() is renamed to journald.sendv(), and a replacement journald.send() is added. This new function has a more pythonic API, where one positional argument is used for the message, and keyword arguments can be used to specify other fields. Implementing argument parsing in C would be really painful, for little gain, so a pure-python module is added, which provides send(), which in turn calls sendv().
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 69d345d..4d8839c 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,13 @@
from distutils.core import setup, Extension
-journald = Extension('journald',
- libraries = ['systemd-journal'],
- sources = ['journald.c'])
+cjournald = Extension('journald/_journald',
+ libraries = ['systemd-journal'],
+ sources = ['journald/_journald.c'])
setup (name = 'journald',
version = '0.1',
description = 'Native interface to the journald facilities of systemd',
author_email = 'david@davidstrauss.net',
url = 'https://github.com/davidstrauss/journald-python',
- ext_modules = [journald])
+ py_modules = ['journald'],
+ ext_modules = [cjournald])