bootstrap: Make sure that the python3 interpreter is installed
authorAndreas Schneider <asn@samba.org>
Tue, 30 Apr 2019 07:48:39 +0000 (09:48 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 May 2019 00:11:25 +0000 (00:11 +0000)
We need it for waf ;-)

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
bootstrap/config.py

index 3d388f3180083931d3b36f7280bda52bc53ddf2e..7870fec1e2370075422013c9be6f0921133b84d8 100644 (file)
@@ -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