From 3fc4f4495874b3b04de837d195d44cfdcc90f9cf Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sat, 9 May 2020 14:12:50 -0400 Subject: [PATCH] pyenv: install libffi-dev Without this package, you'll get an error similar to this: ModuleNotFoundError: No module named '_ctypes' Change-Id: If1b7b66217a33c9001a20449d695cd91dfa2e3c6 --- roles/ensure-python/vars/Debian.yaml | 3 ++- roles/ensure-python/vars/Gentoo.yaml | 3 ++- roles/ensure-python/vars/RedHat.yaml | 3 ++- roles/ensure-python/vars/Suse.yaml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/ensure-python/vars/Debian.yaml b/roles/ensure-python/vars/Debian.yaml index 513f372ed..b3f5797c1 100644 --- a/roles/ensure-python/vars/Debian.yaml +++ b/roles/ensure-python/vars/Debian.yaml @@ -2,8 +2,9 @@ python_build_depends: - aria2 - gcc - libbz2-dev + - libffi-dev - libreadline-dev - libssl-dev - libsqlite3-dev - make - - zlib1g-dev \ No newline at end of file + - zlib1g-dev diff --git a/roles/ensure-python/vars/Gentoo.yaml b/roles/ensure-python/vars/Gentoo.yaml index 419edf6e9..334cb6b30 100644 --- a/roles/ensure-python/vars/Gentoo.yaml +++ b/roles/ensure-python/vars/Gentoo.yaml @@ -1 +1,2 @@ -python_build_depends: [] \ No newline at end of file +python_build_depends: + - virtual/libffi diff --git a/roles/ensure-python/vars/RedHat.yaml b/roles/ensure-python/vars/RedHat.yaml index 9efd469d1..fc9cbf4a0 100644 --- a/roles/ensure-python/vars/RedHat.yaml +++ b/roles/ensure-python/vars/RedHat.yaml @@ -1,8 +1,9 @@ python_build_depends: - bzip2-devel - gcc + - libffi-devel - make - openssl-devel - readline-devel - sqlite-devel - - zlib-devel \ No newline at end of file + - zlib-devel diff --git a/roles/ensure-python/vars/Suse.yaml b/roles/ensure-python/vars/Suse.yaml index c32ea4283..e0fa6fc44 100644 --- a/roles/ensure-python/vars/Suse.yaml +++ b/roles/ensure-python/vars/Suse.yaml @@ -2,9 +2,10 @@ python_build_depends: - aria2 - gcc - libbz2-devel + - libffi-devel - make - openssl-devel - readline-devel - sqlite3-devel - tar - - zlib-devel \ No newline at end of file + - zlib-devel