Make docker optional

This commit is contained in:
Olivier 'reivilibre' 2020-11-01 20:19:09 +00:00
parent 2f2dbb1902
commit 9c0360e2e8
2 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,11 @@
from typing import Optional
import attr
import docker.errors
try:
import docker.errors
except ImportError:
docker = None
from scone.common.chanpro import Channel
from scone.sous import Utensil

View File

@ -53,7 +53,9 @@ EXTRAS = {
],
"sous": EX_SOUS_ALL,
"sous-core": EX_SOUS_BASE,
"sous-pg": EX_SOUS_PG
"sous-pg": EX_SOUS_PG,
"docker": ["docker"] # TODO do this more properly if we can...
}
# The rest you shouldn't have to touch too much :)