From 8807b9437505eba24b6124ba3a6fccdc7aaa207b Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Mon, 11 Nov 2024 02:45:51 -0700 Subject: [PATCH] Build python on ubuntu and rocky --- .../testing/golden-state-tree/os/ubuntu/init.sls | 1 + custom/testing/golden-state-tree/python/init.sls | 4 +--- .../python/ubuntu_dependencies.sls | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 custom/testing/golden-state-tree/python/ubuntu_dependencies.sls diff --git a/custom/testing/golden-state-tree/os/ubuntu/init.sls b/custom/testing/golden-state-tree/os/ubuntu/init.sls index 63cafa7..08e768b 100644 --- a/custom/testing/golden-state-tree/os/ubuntu/init.sls +++ b/custom/testing/golden-state-tree/os/ubuntu/init.sls @@ -1,3 +1,4 @@ include: - .config - .pkgs + - python diff --git a/custom/testing/golden-state-tree/python/init.sls b/custom/testing/golden-state-tree/python/init.sls index d469980..b7141c2 100644 --- a/custom/testing/golden-state-tree/python/init.sls +++ b/custom/testing/golden-state-tree/python/init.sls @@ -6,9 +6,7 @@ {%- endif %} include: -{%- if grains['os'] == 'Rocky' %} - - ./rocky_dependencies -{%- endif %} + - ./{{ grains['os'].lower() }}_dependencies python_source_archive: file.managed: diff --git a/custom/testing/golden-state-tree/python/ubuntu_dependencies.sls b/custom/testing/golden-state-tree/python/ubuntu_dependencies.sls new file mode 100644 index 0000000..ae7476a --- /dev/null +++ b/custom/testing/golden-state-tree/python/ubuntu_dependencies.sls @@ -0,0 +1,16 @@ +python_dependencies: + pkg.latest: + - pkgs: + - gcc + - make + - libssl-dev + - libffi-dev + - libbz2-dev + - libgdbm-dev + - liblzma-dev + - uuid-dev + - libreadline-dev + - libncurses-dev + - libsqlite3-dev + - zlib1g-dev + - libgdbm-compat-dev