<div dir="ltr">Hi,<div><br></div><div>I'm trying to use python-systemd with a pyvenv: We use pyvenv to add different set of librairies on the server for each daemon without to disturb Python at the system level.</div><div>I don't find a way to compile systemd with a pyvenv enabled.<br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><br></div><div>To by-pass the issue and ideally to be installable via PyPI or at least with pip, I've tried to add a setup.py.</div><div>I've started something for that, but now I'm blocked, technical details: <a href="https://github.com/systemd/systemd/pull/35">https://github.com/systemd/systemd/pull/35</a></div><div><br></div><div>If somebody has a clue, I'm interested in.</div><div>Nevertheless, if you have an alternative solution, I'm also interested in, I see at least two:</div><div><br></div><div>1. Find a way to compile python-systemd directly from the source code of systemd and use a pyvenv instead of Python system</div><div>2. Implement journald protocol in pure Python: I don't need all python-systemd for now, only to push logs, it should be quicker to implement that instead of to try to install python-systemd via pip.</div><div>I've tried to find a documentation about the protocol specification used in unix socket. I've found nothing except source code.</div><div><br></div><div>Thanks for your suggestions.</div><div><br></div><div>BTW, I've played a little bit with structured log mechanism, it's awesome, I've several ideas to use that for our sysadmin needs, like to find easily all HTTP requests from a specific tenant.</div><div>--<br><div style="font-size:small"><div>Ludovic Gasc (GMLudo)</div></div><div style="font-size:small"><a href="http://www.gmludo.eu/" target="_blank">http://www.gmludo.eu/</a></div></div></div></div></div>
</div></div>