mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add singledispatch to the thin
This commit is contained in:
parent
1e510be55b
commit
da1a2773dd
1 changed files with 9 additions and 0 deletions
|
@ -25,6 +25,12 @@ try:
|
|||
except ImportError:
|
||||
HAS_CERTIFI = False
|
||||
|
||||
try:
|
||||
import singledispatch
|
||||
HAS_SINGLEDISPATCH = True
|
||||
except ImportError:
|
||||
HAS_SINGLEDISPATCH = False
|
||||
|
||||
try:
|
||||
import markupsafe
|
||||
HAS_MARKUPSAFE = True
|
||||
|
@ -120,6 +126,9 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods=''):
|
|||
if HAS_CERTIFI:
|
||||
tops.append(os.path.dirname(certifi.__file__))
|
||||
|
||||
if HAS_SINGLEDISPATCH:
|
||||
tops.append(os.path.dirname(singledispatch.__file__))
|
||||
|
||||
if HAS_SSL_MATCH_HOSTNAME:
|
||||
tops.append(os.path.dirname(os.path.dirname(ssl_match_hostname.__file__)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue