tobiko/roles/tobiko-compile-python/defaults/main.yaml
Federico Ressi 15fa84f133 Compile Python3 on RHEL-7
Change-Id: I20a8764560174fde7cee9147afd0bd3dc01bfb51
2020-06-03 18:59:18 +02:00

49 lines
1.3 KiB
YAML

setup_python: true
setup_pip: true
python_release: "3.7.7"
python_version: "3.7"
python_command: "python3"
python_name: "Python-{{ python_release }}"
python_prefix: "/usr/local"
python_executable: "{{ python_prefix }}/bin/python{{ python_version }}"
python_command_link: "{{ python_executable | dirname }}/{{ python_command }}"
python_url: "https://www.python.org/ftp/python/{{ python_release }}/{{ python_name }}.tgz"
python_tar: "{{ ansible_env.HOME }}/{{ python_url | basename }}"
python_src_dir: "{{ ansible_env.HOME }}/{{ python_name }}"
python_configure_flags: '--enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"'
pip_command: "pip3"
pip_executable: "{{ python_prefix }}/bin/{{ pip_command }}"
pip_url: "https://bootstrap.pypa.io/get-pip.py"
pip_installer: "{{ ansible_env.HOME }}/{{ pip_url | basename }}"
make_jobs: "{{ ansible_processor_vcpus }}"
make_install_goal: "install"
bash_profile_file: "/etc/profile.d/{{ python_name }}.sh"
ldconfig_file: "/etc/ld.so.conf.d/{{ python_name }}.conf"
yum_install_packages:
- "@Development tools"
- bzip2-devel
- expat-devel
- gdbm-devel
- libffi-devel
- ncurses-devel
- openssl-devel
- readline-devel
- sqlite-devel
- tk-devel
- xz-devel
- zlib-devel
pip_install_base_packages:
- setuptools
- pip
- wheel
pip_install_packages: []