From: Andreas Schneider Date: Tue, 30 Apr 2019 07:48:39 +0000 (+0200) Subject: bootstrap: Make sure that the python3 interpreter is installed X-Git-Tag: tdb-1.4.1~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05791f40a6e78e628ec4ab2fb0e13b2c7fbb1b78;p=thirdparty%2Fsamba.git bootstrap: Make sure that the python3 interpreter is installed We need it for waf ;-) Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/bootstrap/config.py b/bootstrap/config.py index 3d388f31800..7870fec1e23 100644 --- a/bootstrap/config.py +++ b/bootstrap/config.py @@ -136,6 +136,7 @@ PKGS = [ ('python-dnspython', 'python-dns'), ('python-pexpect', ''), # for wintest only + ('python3', 'python3'), ('python3-dev', 'python3-devel'), ('python3-dbg', ''), ('python3-iso8601', ''), @@ -218,6 +219,10 @@ yum install -y \ {pkgs} yum clean all + +if [ ! -f /usr/bin/python3 ]; then + ln -sf /usr/bin/python3.4 /usr/bin/python3 +fi """ @@ -427,6 +432,7 @@ RPM_DISTS = { 'bootstrap': YUM_BOOTSTRAP, 'replace': { 'lsb-release': 'redhat-lsb', + 'python3': 'python34', 'python3-devel': 'python34-devel', 'python2-gpg': 'pygpgme', 'python3-gpg': '', # no python3-gpg yet @@ -449,6 +455,7 @@ RPM_DISTS = { 'bootstrap': YUM_BOOTSTRAP, 'replace': { 'lsb-release': 'redhat-lsb', + 'python3': 'python34', 'python3-devel': 'python34-devel', # although python36-devel is available # after epel-release installed