diff options
author | Emil Velikov <[email protected]> | 2018-08-16 13:59:38 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-31 19:15:50 +0000 |
commit | 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a (patch) | |
tree | 272f346932d8d545e79213feeab07d610fa3dfbd /src/util | |
parent | 6d7d3dbda531b0bc692ffb479d65527b2138dbf3 (diff) |
configure: allow building with python3
Pretty much all of the scripts are python2+3 compatible.
Check and allow using python3, while adjusting the PYTHON2 refs.
Note:
- python3.4 is used as it's the earliest supported version
- python2 chosen prior to python3
v2: use python2 by default
Cc: Ilia Mirkin <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.am | 2 | ||||
-rw-r--r-- | src/util/xmlpool/Makefile.am | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index d79f2b320be..b857db8a866 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -94,7 +94,7 @@ EXTRA_DIST = \ sha1/README \ meson.build -PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) +PYTHON_GEN = $(AM_V_GEN)$(PYTHON) $(PYTHON_FLAGS) format_srgb.c: format_srgb.py $(PYTHON_GEN) $(srcdir)/format_srgb.py > $@ diff --git a/src/util/xmlpool/Makefile.am b/src/util/xmlpool/Makefile.am index 0ef7a5462a1..f5142768aa3 100644 --- a/src/util/xmlpool/Makefile.am +++ b/src/util/xmlpool/Makefile.am @@ -70,7 +70,7 @@ CLEANFILES = \ # Default target options.h LOCALEDIR := . options.h: t_options.h $(MOS) - $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/gen_xmlpool.py $(srcdir)/t_options.h $(LOCALEDIR) $(LANGS) > options.h + $(AM_V_GEN) $(PYTHON) $(PYTHON_FLAGS) $(srcdir)/gen_xmlpool.py $(srcdir)/t_options.h $(LOCALEDIR) $(LANGS) > options.h # Update .mo files from the corresponding .po files. %/LC_MESSAGES/options.mo: %.po |