From cb86c7df5b238231fdc0a4ec9151ece928b37d3c Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Wed, 10 Sep 2025 09:52:22 +0200 Subject: [PATCH 1/3] chore: typos --- tasks/deps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/deps.yml b/tasks/deps.yml index 5863df6..cce77b9 100644 --- a/tasks/deps.yml +++ b/tasks/deps.yml @@ -5,7 +5,7 @@ ansible.builtin.apt: update_cache: true -- name: Dependencies Python | Install compile time depdendencies +- name: Dependencies Python | Install compile time dependencies become: true ansible.builtin.apt: state: present @@ -44,7 +44,7 @@ # Pillow ## -- name: Dependencies Pillow | Install compile time depdendencies +- name: Dependencies Pillow | Install compile time dependencies become: true ansible.builtin.apt: state: present From 67084639190f0515b51dea23722573675a79ccc9 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Wed, 10 Sep 2025 09:59:43 +0200 Subject: [PATCH 2/3] feat: install python minimum dependencies Fortunately, Debian/Ubuntu help us on that with `build-dep` option of `apt`. --- tasks/deps.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tasks/deps.yml b/tasks/deps.yml index cce77b9..648e8fa 100644 --- a/tasks/deps.yml +++ b/tasks/deps.yml @@ -1,10 +1,25 @@ --- +- name: Add source repository into sources list + ansible.builtin.apt_repository: + # yamllint disable-line rule:line-length + repo: deb-src http://archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} main + state: present + - name: Update APT sources become: true ansible.builtin.apt: update_cache: true +# yamllint disable-line rule:line-length +# See https://devguide.python.org/getting-started/setup-building/#install-dependencies +- name: Dependencies Python | Install build time dependencies + become: true + ansible.builtin.apt: + state: build-dep + name: + - python3 + - name: Dependencies Python | Install compile time dependencies become: true ansible.builtin.apt: From 4474e3e6f2e0360b79aad5626f5afea27a18d471 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Wed, 10 Sep 2025 10:01:49 +0200 Subject: [PATCH 3/3] chore: update extra dependencies Those are needed to enable all Python optional modules. --- tasks/deps.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tasks/deps.yml b/tasks/deps.yml index 648e8fa..f5bb1a6 100644 --- a/tasks/deps.yml +++ b/tasks/deps.yml @@ -20,31 +20,32 @@ name: - python3 +# yamllint disable-line rule:line-length +# Again, see https://devguide.python.org/getting-started/setup-building/#install-dependencies - name: Dependencies Python | Install compile time dependencies become: true ansible.builtin.apt: state: present name: - - autotools-dev - - blt-dev - - bzip2 - - dpkg-dev - - g++-multilib - - gcc-multilib - - libbluetooth-dev + - build-essential + - gdb + - lcov - libbz2-dev - - libexpat1-dev - libffi-dev - libgdbm-dev - - libgpm2 - - libncursesw5-dev - - libreadline-dev + - libgdbm-compat-dev + - liblzma-dev + - libncurses5-dev + - libreadline6-dev - libsqlite3-dev - libssl-dev - - libtinfo-dev - - net-tools - - netbase + - libzstd-dev + - lzma + - lzma-dev + - pkg-config - tk-dev + - uuid-dev + - xz-utils - zlib1g-dev - name: Dependencies Python 3.6 | Install compile time dependencies