Compile Python3 on RHEL-7

Change-Id: I20a8764560174fde7cee9147afd0bd3dc01bfb51
This commit is contained in:
Federico Ressi 2020-06-03 16:49:57 +02:00
parent d4b18155a4
commit 15fa84f133
4 changed files with 10 additions and 7 deletions

View File

@ -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

View File

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

View File

@ -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 }}

View File

@ -1,7 +1,3 @@
---
python_packages:
python3:
- python3
python3.6:
- python36
compile_python3: yes