dokos-ansible/tasks/python310.yml

40 lines
891 B
YAML

- name: dokos | python3.10 | apt packages
tags: packages
package:
state: latest
update_cache: yes
name:
- wget
- build-essential
- libncursesw5-dev
- libssl-dev
- libsqlite3-dev
- tk-dev
- libgdbm-dev
- libc6-dev
- libbz2-dev
- libffi-dev
- zlib1g-dev
- name: dokos | python3.10 | get python 3.10 source
get_url:
url: https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz
dest: /tmp/Python-3.10.2.tgz
- name: dokos | python3.10 | extract python 3.10 source
unarchive:
src: /tmp/Python-3.10.2.tgz
dest: /tmp/
remote_src: yes
- name: dokos | python3.10 | python 3.10 configure
command:
cmd: ./configure --enable-optimizations
chdir: /tmp/Python-3.10.2
- name: dokos | python3.10 | python 3.10 install
command:
cmd: make altinstall
chdir: /tmp/Python-3.10.2