diff options
| author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-06-28 13:32:03 -0400 |
|---|---|---|
| committer | Zbyszek Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-07-12 11:02:30 +0200 |
| commit | 557184bb56240bfcf05d250e5bf9049eaf6d0ec5 (patch) | |
| tree | 9475eac39f8fdb607c8db1aa61380906adf8cf4d /setup.py | |
| parent | 3c089ad48eb899b332babab380c5f1782a2e04ad (diff) | |
| download | python-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.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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]) |
