Skip to content

Commit a434da3

Browse files
authored
Make selinux an optional extra (#89)
As our special selinux shim dependency also caused problems for people that did not really need selinux, we now make it a simple extra.
1 parent a3f3d2f commit a434da3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ docker = [
6868
ec2 = []
6969
gce = []
7070
podman = [
71-
# selinux python module is needed as least by ansible-podman modules
72-
# and allows us of isolated (default) virtualenvs. It does not avoid need
73-
# to install the system selinux libraries but it will provide a clear
74-
# message when user has to do that.
71+
]
72+
selinux = [
73+
# selinux python module is needed as least by podman and docker on systems
74+
# that do have selinux enabled and where code is running inside of an
75+
# isolated (default) virtualenv. It does not avoid need to install the
76+
# system selinux libraries but it will provide a clear message when user
77+
# has to do that.
7578
'selinux; sys_platform=="linux2"',
7679
'selinux; sys_platform=="linux"',
7780
]

0 commit comments

Comments
 (0)