Merge pull request #10426 from plastikos/issue-10425

Include msgpack in thin.tgz
This commit is contained in:
Thomas S Hatch 2014-02-14 13:05:56 -07:00
commit 7cc71ff1d5

View File

@ -10,6 +10,7 @@ import tarfile
# Import third party libs # Import third party libs
import jinja2 import jinja2
import yaml import yaml
import msgpack
try: try:
import markupsafe import markupsafe
HAS_MARKUPSAFE = True HAS_MARKUPSAFE = True
@ -60,6 +61,7 @@ def gen_thin(cachedir, extra_mods='', overwrite=False):
os.path.dirname(salt.__file__), os.path.dirname(salt.__file__),
os.path.dirname(jinja2.__file__), os.path.dirname(jinja2.__file__),
os.path.dirname(yaml.__file__), os.path.dirname(yaml.__file__),
os.path.dirname(msgpack.__file__),
] ]
for mod in [m for m in extra_mods.split(',') if m]: for mod in [m for m in extra_mods.split(',') if m]:
if mod not in locals() and mod not in globals(): if mod not in locals() and mod not in globals():