b32c3a5f6e
Depends-On: I4a5ac77948ddb65944b0852b03122190a659269b Change-Id: If126f32a301c5bd0a2c50b6b9c6b0d8ef2cdf7ca
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
|
|
setup_python: true
|
|
setup_pip: true
|
|
|
|
python_release: "3.9.16"
|
|
python_version: "3.9"
|
|
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: []
|