diff options
author | ng0 <ng0@n0.is> | 2019-02-14 16:41:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-14 16:41:09 +0000 |
commit | 783ac3513030b6006d117f156cfc068148757bcf (patch) | |
tree | 8d0e2cce1dc0a591c4c15ec0299d00dbfaac571f /src/util | |
parent | b54371bd5ca3d86e7e8383149975fdc31b14d0a7 (diff) | |
download | gnunet-783ac3513030b6006d117f156cfc068148757bcf.tar.gz gnunet-783ac3513030b6006d117f156cfc068148757bcf.zip |
Switch to python3.7 (integration-tests incomplete), continue using python2.7 for gnunet-qr with an incredible annoying workaround for autotools inability to deal with 2 major python versions at the same time
Signed-off-by: ng0 <ng0@n0.is>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/.gitignore | 1 | ||||
-rw-r--r-- | src/util/Makefile.am | 4 | ||||
-rwxr-xr-x | src/util/gnunet-qr.py.in | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/util/.gitignore b/src/util/.gitignore index 7b190ca76..dfa6c7947 100644 --- a/src/util/.gitignore +++ b/src/util/.gitignore | |||
@@ -73,3 +73,4 @@ test_hexcoder | |||
73 | test_regex | 73 | test_regex |
74 | test_tun | 74 | test_tun |
75 | gnunet-timeout | 75 | gnunet-timeout |
76 | python27_location | ||
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index fd00b077d..1e82ec73a 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am | |||
@@ -226,7 +226,9 @@ gnunet_timeout_SOURCES = \ | |||
226 | endif | 226 | endif |
227 | 227 | ||
228 | 228 | ||
229 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' | 229 | mypython27=$(shell cat $(top_srcdir)/src/util/python27_location) |
230 | |||
231 | do_subst = $(SED) -e 's,[@]PYTHON2[@],${mypython27},g' | ||
230 | 232 | ||
231 | gnunet-qr: gnunet-qr.py.in Makefile | 233 | gnunet-qr: gnunet-qr.py.in Makefile |
232 | $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr | 234 | $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr |
diff --git a/src/util/gnunet-qr.py.in b/src/util/gnunet-qr.py.in index 6c9d208f7..0d52bed53 100755 --- a/src/util/gnunet-qr.py.in +++ b/src/util/gnunet-qr.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHON2@ |
2 | from __future__ import print_function | 2 | from __future__ import print_function |
3 | from builtins import str | 3 | from builtins import str |
4 | import sys | 4 | import sys |