Add singledispatch to the thin

This commit is contained in:
Colton Myers 2015-11-11 15:50:16 -07:00
parent 93562631aa
commit 897cad627b

View file

@ -24,6 +24,12 @@ try:
except ImportError:
HAS_CERTIFI = False
try:
import singledispatch
HAS_SINGLEDISPATCH = True
except ImportError:
HAS_SINGLEDISPATCH = False
try:
import markupsafe
HAS_MARKUPSAFE = True
@ -118,6 +124,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__)))