[Distutils] distutils extension for dbus service files
lukas.hetzenecker at gmail.com
Tue Feb 15 17:43:07 CET 2011
I've created an extension for distutils which reads D-Bus *.service.in files,
replaces macros in these files (e.g. @bindir@) and copies them to the
appropriate location (e. g. /usr/share/dbus-1/services/ or
$HOME/.local/share/dbus-1/services in user-mode).
I couldn't find much useful information for this task in the distutils
documentation, so I tried to accomplish this by reading through the source
code of the distutils commands.
Is the attached python script the right way to handle this situation or could
this be achieved easier?
If this is the correct way to do this I'll also write similar methods for
handling PyQt4 ui and translation files.
This is an example for a setup.py script
from oms_distutils import setup
And this is the com.example.test.service.in file:
Thanks for your comments,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6237 bytes
Desc: not available
More information about the Distutils-SIG