File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1717develop-eggs
1818.installed.cfg
1919MANIFEST
20+ .venv
2021
2122# Installer logs
2223pip-log.txt
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ Show kernel ring buffer (`journalctl -k`):
133133 print(entry['MESSAGE'])
134134
135135Read entries in reverse (` journalctl _EXE=/usr/bin/vim -r ` ):
136-
136+
137137 from systemd import journal
138138 class ReverseReader(journal.Reader):
139139 def __next__(self):
@@ -199,8 +199,23 @@ Quick way to view output with all fields as it comes in:
199199Test Builds (for Development)
200200=============================
201201
202- python setup.py build_ext -i
202+ Create a virtual environment:
203+
204+ python3 -m venv .venv
205+ source .venv/bin/activate
206+ python -m pip install build
207+ python -m pip install .
203208 python
209+ >>> import systemd.journal
210+ >>> systemd.journal.send("Test")
211+
212+ You can also build with [ ` uv ` ] ( https://docs.astral.sh/uv/ ) .
213+
214+ uv build
215+ uv sync --no-editable
216+ # `--no-editable` is required, because `uv` seems not to work well with meson-python and cause
217+ # "python not found" with editable mode.
218+ uv run --no-editable python
204219 >>> from systemd import journal
205220 >>> journal.send("Test")
206221
You can’t perform that action at this time.
0 commit comments