From e8ad1ba8dfbd3efb2692fcb6329a836790f84da6 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 11 Jan 2023 17:13:06 +0000 Subject: [PATCH] Make selinux an optional extra As our special selinux shim dependency also caused problems for people that did not really need selinux, we now make it a simple extra. --- pyproject.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7154c9ef..a7dba8de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,10 +68,13 @@ docker = [ ec2 = [] gce = [] podman = [ - # selinux python module is needed as least by ansible-podman modules - # and allows us of isolated (default) virtualenvs. It does not avoid need - # to install the system selinux libraries but it will provide a clear - # message when user has to do that. +] +selinux = [ + # selinux python module is needed as least by podman and docker on systems + # that do have selinux enabled and where code is running inside of an + # isolated (default) virtualenv. It does not avoid need to install the + # system selinux libraries but it will provide a clear message when user + # has to do that. 'selinux; sys_platform=="linux2"', 'selinux; sys_platform=="linux"', ]