@@ -12,6 +12,7 @@ is separated into a number of modules:
1212- ` systemd.login ` wraps parts of ` libsystemd ` used to query logged in users
1313 and available seats and machines.
1414
15+
1516Installation
1617============
1718
@@ -41,14 +42,33 @@ The project is also available on pypi as `systemd-python`:
4142To build from source
4243--------------------
4344
44- On CentOS, RHEL, and Fedora:
45+ ### On CentOS, RHEL, and Fedora:
4546
4647 dnf install git python3-pip gcc python3-devel systemd-devel
4748 pip3 install 'git+https://github.com/systemd/python-systemd.git#egg=systemd-python'
4849
49- On Debian or Ubuntu:
50+ ### On Debian or Ubuntu:
51+
52+ make is mirrored into docker-compose, to turn the build independent of packages installed
53+
54+ mkdir dist
55+ mkdir build
56+
57+ to run make all:
58+
59+ docker compose run --rm make
60+
61+ to run any make command
62+
63+ docker compose run --rm make $command
64+
65+ for example
66+
67+ docker compose run --rm make wheel
68+ docker compose run --rm make clean
69+ docker compose run --rm make build
70+ docker compose run --rm make check
5071
51- apt install libsystemd-{journal,daemon,login,id128}-dev gcc python3-dev pkg-config
5272
5373Usage
5474=====
@@ -133,7 +153,7 @@ Show kernel ring buffer (`journalctl -k`):
133153 print(entry['MESSAGE'])
134154
135155Read entries in reverse (` journalctl _EXE=/usr/bin/vim -r ` ):
136-
156+
137157 from systemd import journal
138158 class ReverseReader(journal.Reader):
139159 def __next__(self):
0 commit comments