aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-02-14 16:41:09 +0000
committerng0 <ng0@n0.is>2019-02-14 16:41:09 +0000
commit783ac3513030b6006d117f156cfc068148757bcf (patch)
tree8d0e2cce1dc0a591c4c15ec0299d00dbfaac571f /src/util
parentb54371bd5ca3d86e7e8383149975fdc31b14d0a7 (diff)
downloadgnunet-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/.gitignore1
-rw-r--r--src/util/Makefile.am4
-rwxr-xr-xsrc/util/gnunet-qr.py.in2
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
73test_regex 73test_regex
74test_tun 74test_tun
75gnunet-timeout 75gnunet-timeout
76python27_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 = \
226endif 226endif
227 227
228 228
229do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' 229mypython27=$(shell cat $(top_srcdir)/src/util/python27_location)
230
231do_subst = $(SED) -e 's,[@]PYTHON2[@],${mypython27},g'
230 232
231gnunet-qr: gnunet-qr.py.in Makefile 233gnunet-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@
2from __future__ import print_function 2from __future__ import print_function
3from builtins import str 3from builtins import str
4import sys 4import sys