diff options
author | horchi <vdr@jwendel.de> | 2019-11-28 13:35:08 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2019-11-28 13:35:08 +0100 |
commit | 8ff8ab951ef977f0de2809959592587664dd06a3 (patch) | |
tree | bbeb29272e45c7216bc581fd85b1c5af863d2579 /Make.config | |
parent | e64767a31174f2ee3cda6480633559a1423a9fc0 (diff) | |
download | vdr-epg-daemon-8ff8ab951ef977f0de2809959592587664dd06a3.tar.gz vdr-epg-daemon-8ff8ab951ef977f0de2809959592587664dd06a3.tar.bz2 |
2019-11-28: version 1.1.147 (horchi)\n - added: Support of python 3.8 (by Alexander Grothe)\n\n1.1.147
Diffstat (limited to 'Make.config')
-rw-r--r-- | Make.config | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Make.config b/Make.config index 4e06fc7..db65ba0 100644 --- a/Make.config +++ b/Make.config @@ -24,6 +24,10 @@ UPSTARTDEST = $(DESTDIR)/etc/init INIT_SYSTEM = systemd INIT_AFTER = mysql.service +# set the python intepreter + +PYTHON ?= python + # ------------------ # don't touch below @@ -69,7 +73,17 @@ ifdef SYSD_NOTIFY endif ifdef USELIBXML - DEFINES += $(shell xml2-config --cflags) $(shell xslt-config --cflags) $(shell python-config --includes) + DEFINES += $(shell xml2-config --cflags) $(shell xslt-config --cflags) +endif + +ifdef USEPYTHON + DEFINES += $(shell $(PYTHON)-config --includes) + ifeq ($(shell $(PYTHON) -c 'from __future__ import print_function; import sys; sys.exit(0) if sys.version_info[:2] < (3,8) else print(1)'), 1) + BASELIBS += $(shell $(PYTHON)-config --libs --embed) + else + BASELIBS += $(shell $(PYTHON)-config --libs) + endif + CFLAGS += $(shell $(PYTHON)-config --includes) endif ifdef SYSD_NOTIFY |