Skip to content

Commit b9fd7bb

Browse files
committed
Merge pull request #501 from keszybz/remove-python-systemd
Remove python-systemd
2 parents 9a50ce2 + 2799e51 commit b9fd7bb

24 files changed

+1
-3755
lines changed

Makefile.am

Lines changed: 0 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -5620,164 +5620,6 @@ EXTRA_DIST += \
56205620
test/loopy.service.d \
56215621
test/loopy.service.d/compat.conf
56225622

5623-
# ------------------------------------------------------------------------------
5624-
if HAVE_PYTHON_DEVEL
5625-
pkgpyexec_LTLIBRARIES = \
5626-
_journal.la \
5627-
id128.la \
5628-
_daemon.la \
5629-
_reader.la \
5630-
login.la
5631-
5632-
_journal_la_SOURCES = \
5633-
src/python-systemd/_journal.c
5634-
5635-
_journal_la_CFLAGS = \
5636-
$(AM_CFLAGS) \
5637-
-fvisibility=default \
5638-
$(PYTHON_DEVEL_CFLAGS)
5639-
5640-
_journal_la_LDFLAGS = \
5641-
$(AM_LDFLAGS) \
5642-
-shared \
5643-
-module \
5644-
-avoid-version
5645-
5646-
_journal_la_LIBADD = \
5647-
$(PYTHON_DEVEL_LIBS) \
5648-
libsystemd.la
5649-
5650-
id128_la_SOURCES = \
5651-
src/python-systemd/id128.c \
5652-
src/python-systemd/pyutil.c \
5653-
src/python-systemd/pyutil.h
5654-
5655-
nodist_id128_la_SOURCES = \
5656-
src/python-systemd/id128-constants.h
5657-
5658-
id128_la_CFLAGS = \
5659-
$(AM_CFLAGS) \
5660-
-fvisibility=default \
5661-
$(PYTHON_DEVEL_CFLAGS) \
5662-
-I$(top_builddir)/src/python-systemd
5663-
5664-
id128_la_LDFLAGS = \
5665-
$(AM_LDFLAGS) \
5666-
-shared \
5667-
-module \
5668-
-avoid-version
5669-
5670-
id128_la_LIBADD = \
5671-
$(PYTHON_DEVEL_LIBS) \
5672-
libshared.la \
5673-
libsystemd.la
5674-
5675-
_daemon_la_SOURCES = \
5676-
src/python-systemd/_daemon.c \
5677-
src/python-systemd/pyutil.c \
5678-
src/python-systemd/pyutil.h
5679-
5680-
_daemon_la_CFLAGS = \
5681-
$(AM_CFLAGS) \
5682-
-fvisibility=default \
5683-
$(PYTHON_DEVEL_CFLAGS) \
5684-
-I$(top_builddir)/src/python-systemd
5685-
5686-
_daemon_la_LDFLAGS = \
5687-
$(AM_LDFLAGS) \
5688-
-shared \
5689-
-module \
5690-
-avoid-version
5691-
5692-
_daemon_la_LIBADD = \
5693-
$(PYTHON_DEVEL_LIBS) \
5694-
libshared.la \
5695-
libsystemd.la
5696-
5697-
_reader_la_SOURCES = \
5698-
src/python-systemd/_reader.c \
5699-
src/python-systemd/pyutil.c \
5700-
src/python-systemd/pyutil.h
5701-
5702-
_reader_la_CFLAGS = \
5703-
$(AM_CFLAGS) \
5704-
-fvisibility=default \
5705-
$(PYTHON_DEVEL_CFLAGS)
5706-
5707-
_reader_la_LDFLAGS = \
5708-
$(AM_LDFLAGS) \
5709-
-shared \
5710-
-module \
5711-
-avoid-version
5712-
5713-
_reader_la_LIBADD = \
5714-
$(PYTHON_DEVEL_LIBS) \
5715-
libshared.la \
5716-
libsystemd.la
5717-
5718-
login_la_SOURCES = \
5719-
src/python-systemd/login.c \
5720-
src/python-systemd/pyutil.c \
5721-
src/python-systemd/pyutil.h
5722-
5723-
login_la_CFLAGS = \
5724-
$(AM_CFLAGS) \
5725-
-fvisibility=default \
5726-
$(PYTHON_DEVEL_CFLAGS)
5727-
5728-
login_la_LDFLAGS = \
5729-
$(AM_LDFLAGS) \
5730-
-shared \
5731-
-module \
5732-
-avoid-version
5733-
5734-
login_la_LIBADD = \
5735-
$(PYTHON_DEVEL_LIBS) \
5736-
libshared.la \
5737-
libsystemd.la
5738-
5739-
dist_pkgpyexec_PYTHON = \
5740-
src/python-systemd/journal.py \
5741-
src/python-systemd/daemon.py \
5742-
src/python-systemd/__init__.py
5743-
5744-
src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
5745-
$(AM_V_at)$(MKDIR_P) $(dir $@)
5746-
$(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
5747-
5748-
BUILT_SOURCES += \
5749-
$(nodist_id128_la_SOURCES)
5750-
5751-
SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
5752-
sphinx-%:
5753-
$(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
5754-
$(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
5755-
$(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
5756-
5757-
python-shell:
5758-
$(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
5759-
$(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
5760-
5761-
destdir-sphinx: all
5762-
dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
5763-
$(MAKE) DESTDIR="$$dir" install && \
5764-
$(MAKE) DESTDIR="$$dir" sphinx-html && \
5765-
rm -rf "$$dir"
5766-
5767-
endif
5768-
5769-
CLEAN_LOCAL_HOOKS += clean-sphinx
5770-
5771-
.PHONY: python-shell destdir-sphinx clean-sphinx clean-python
5772-
5773-
clean-sphinx:
5774-
-rm -rf docs/html/python-systemd/
5775-
5776-
# Remove Python stuff, e.g. to force rebuilding for a different Python version.
5777-
clean-python:
5778-
-rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
5779-
-rm -f _daemon.la id128.la _journal.la login.la _reader.la
5780-
57815623
# ------------------------------------------------------------------------------
57825624
if ENABLE_COMPAT_LIBS
57835625
libsystemd-%.c: src/compat-libs/libsystemd-%.sym
@@ -5950,7 +5792,6 @@ substitutions = \
59505792
'|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
59515793
'|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
59525794
'|PYTHON=$(PYTHON)|' \
5953-
'|PYTHON_BINARY=$(PYTHON_BINARY)|' \
59545795
'|NTP_SERVERS=$(NTP_SERVERS)|' \
59555796
'|DNS_SERVERS=$(DNS_SERVERS)|' \
59565797
'|systemuidmax=$(SYSTEM_UID_MAX)|' \
@@ -6251,11 +6092,6 @@ DISTCHECK_CONFIGURE_FLAGS += \
62516092
--with-sysvrcnd-path=
62526093
endif
62536094

6254-
if HAVE_PYTHON
6255-
DISTCHECK_CONFIGURE_FLAGS += \
6256-
--with-python
6257-
endif
6258-
62596095
if ENABLE_SPLIT_USR
62606096
DISTCHECK_CONFIGURE_FLAGS += \
62616097
--enable-split-usr
@@ -6312,7 +6148,6 @@ www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
63126148
.PHONY: doc-sync
63136149
doc-sync: all destdir-sphinx
63146150
rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
6315-
rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/
63166151

63176152
.PHONY: gardel
63186153
gardel: upload

configure.ac

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ AC_CHECK_SIZEOF(rlim_t,,[
238238
])
239239

240240
# ------------------------------------------------------------------------------
241-
# we use python to build the man page index, and for systemd-python
241+
# we use python to build the man page index
242242
have_python=no
243243
AC_ARG_WITH([python],
244244
[AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
@@ -260,30 +260,7 @@ AS_IF([test "$have_python" != "yes"], [
260260
AS_IF([test "$with_python" != "no"],
261261
[AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
262262
])
263-
264263
AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
265-
AS_IF([test "x$PYTHON_BINARY" = "x"],
266-
[AS_IF([test "x$have_python" = "xyes"],
267-
[PYTHON_BINARY="$(which "$PYTHON")"],
268-
[PYTHON_BINARY=/usr/bin/python])])
269-
AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
270-
271-
AS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
272-
[AC_MSG_ERROR([*** python-devel support requires --with-python])])
273-
274-
have_python_devel=no
275-
AC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
276-
AS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
277-
PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
278-
[have_python_devel=yes],
279-
[PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
280-
[have_python_devel=yes],
281-
[have_python_devel=no])])
282-
AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
283-
[AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
284-
AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
285-
])
286-
AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
287264

288265
# ------------------------------------------------------------------------------
289266

@@ -1566,7 +1543,6 @@ AC_MSG_RESULT([
15661543
terminal: ${have_terminal}
15671544
kdbus: ${have_kdbus}
15681545
Python: ${have_python}
1569-
Python Headers: ${have_python_devel}
15701546
man pages: ${have_manpages}
15711547
test coverage: ${have_coverage}
15721548
Split /usr: ${enable_split_usr}
@@ -1587,7 +1563,6 @@ AC_MSG_RESULT([
15871563
SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
15881564
SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
15891565
Build Python: ${PYTHON}
1590-
Installation Python: ${PYTHON_BINARY}
15911566
sphinx binary: ${SPHINX_BUILD}
15921567
PAM modules dir: ${with_pamlibdir}
15931568
PAM configuration dir: ${with_pamconfdir}
@@ -1608,6 +1583,4 @@ AC_MSG_RESULT([
16081583
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
16091584
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
16101585
LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
1611-
PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
1612-
PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}
16131586
])

man/custom-html.xsl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@
225225
<xsl:text>systemd.directives.html</xsl:text>
226226
</xsl:attribute>
227227
<xsl:text>Directives </xsl:text>
228-
</a
229-
<a>
230-
<xsl:attribute name="href">
231-
<xsl:text>../python-systemd/index.html</xsl:text>
232-
</xsl:attribute>
233-
<xsl:text>Python </xsl:text>
234228
</a>
235229

236230
<span style="float:right">

src/python-systemd/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/python-systemd/Makefile

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/python-systemd/__init__.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)