This website works better with JavaScript.
Home
Explore
Get Started
x
/
tobiko
Code
Issues
Proposed changes
Browse Source
Compile Python3 on RHEL-7
Change-Id: I20a8764560174fde7cee9147afd0bd3dc01bfb51
changes/60/733160/2
Federico Ressi
11 months ago
parent
d4b18155a4
commit
15fa84f133
4 changed files
with
10 additions
and
7 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
roles/tobiko-compile-python/defaults/main.yaml
+2
-0
roles/tobiko-ensure-python3/defaults/main.yaml
+6
-0
roles/tobiko-ensure-python3/tasks/install.yaml
+1
-5
roles/tobiko-ensure-python3/vars/RedHat-7.yaml
+ 1
- 2
roles/tobiko-compile-python/defaults/main.yaml
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
+ 2
- 0
roles/tobiko-ensure-python3/defaults/main.yaml
View File
@ -16,3 +16,5 @@ python_command: 'python{{ python_version }}'
python_packages
:
{}
python_info
:
{}
compile_python3
:
no
+ 6
- 0
roles/tobiko-ensure-python3/tasks/install.yaml
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 }}
+ 1
- 5
roles/tobiko-ensure-python3/vars/RedHat-7.yaml
View File
@ -1,7 +1,3 @@
---
python_packages:
python3:
-
python3
python3.6:
-
python36
compile_python3
:
yes
Write
Preview
Loading…
Cancel
Save