Browse Source

Compile Python3 on RHEL-7

Change-Id: I20a8764560174fde7cee9147afd0bd3dc01bfb51
changes/60/733160/2
Federico Ressi 1 year ago
parent
commit
15fa84f133
  1. 3
      roles/tobiko-compile-python/defaults/main.yaml
  2. 2
      roles/tobiko-ensure-python3/defaults/main.yaml
  3. 6
      roles/tobiko-ensure-python3/tasks/install.yaml
  4. 6
      roles/tobiko-ensure-python3/vars/RedHat-7.yaml

3
roles/tobiko-compile-python/defaults/main.yaml

@ -2,7 +2,7 @@
setup_python: true
setup_pip: true
python_release: "3.7.5"
python_release: "3.7.7"
python_version: "3.7"
python_command: "python3"
python_name: "Python-{{ python_release }}"
@ -32,7 +32,6 @@ yum_install_packages:
- expat-devel
- gdbm-devel
- libffi-devel
- libpcap-devel
- ncurses-devel
- openssl-devel
- readline-devel

2
roles/tobiko-ensure-python3/defaults/main.yaml

@ -16,3 +16,5 @@ python_command: 'python{{ python_version }}'
python_packages: {}
python_info: {}
compile_python3: no

6
roles/tobiko-ensure-python3/tasks/install.yaml

@ -13,6 +13,12 @@
when: install_python_packages is changed
- name: "compile python 3 from sources"
include_role: name=tobiko-compile-python
when:
- compile_python3 | bool
- name: "get '{{ python_command }}' full path"
shell: |
export PATH={{ python_exe_path }}

6
roles/tobiko-ensure-python3/vars/RedHat-7.yaml

@ -1,7 +1,3 @@
---
python_packages:
python3:
- python3
python3.6:
- python36
compile_python3: yes
Loading…
Cancel
Save