mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add backports_abc and singledispatch_helpers to thin as well
This commit is contained in:
parent
897cad627b
commit
57be72eb91
1 changed files with 19 additions and 1 deletions
|
@ -30,6 +30,18 @@ try:
|
|||
except ImportError:
|
||||
HAS_SINGLEDISPATCH = False
|
||||
|
||||
try:
|
||||
import singledispatch_helpers
|
||||
HAS_SINGLEDISPATCH_HELPERS = True
|
||||
except ImportError:
|
||||
HAS_SINGLEDISPATCH_HELPERS = False
|
||||
|
||||
try:
|
||||
import backports_abc
|
||||
HAS_BACKPORTS_ABC = True
|
||||
except ImportError:
|
||||
HAS_BACKPORTS_ABC = False
|
||||
|
||||
try:
|
||||
import markupsafe
|
||||
HAS_MARKUPSAFE = True
|
||||
|
@ -125,7 +137,13 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods=''):
|
|||
tops.append(os.path.dirname(certifi.__file__))
|
||||
|
||||
if HAS_SINGLEDISPATCH:
|
||||
tops.append(os.path.dirname(singledispatch.__file__))
|
||||
tops.append(singledispatch.__file__.replace('.pyc', '.py'))
|
||||
|
||||
if HAS_SINGLEDISPATCH_HELPERS:
|
||||
tops.append(singledispatch_helpers.__file__.replace('.pyc', '.py'))
|
||||
|
||||
if HAS_BACKPORTS_ABC:
|
||||
tops.append(backports_abc.__file__.replace('.pyc', '.py'))
|
||||
|
||||
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