summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-04-30 09:48:39 +0200
committerAndrew Bartlett <abartlet@samba.org>2019-05-07 00:11:25 +0000
commit05791f40a6e78e628ec4ab2fb0e13b2c7fbb1b78 (patch)
tree2953013540b925e27297ceae244b233df70a2eb6 /bootstrap
parent4607ed73354716367e71f575d18bd8f5ba8e926d (diff)
downloadsamba-05791f40a6e78e628ec4ab2fb0e13b2c7fbb1b78.tar.gz
bootstrap: Make sure that the python3 interpreter is installed
We need it for waf ;-) Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/config.py7
1 files changed, 7 insertions, 0 deletions
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