Add basic shareable module classifier

This commit is contained in:
Bo Maryniuk 2018-03-13 18:02:00 +01:00
parent c822ba2ed0
commit 7fc1dbbce3

View File

@ -94,6 +94,20 @@ def thin_path(cachedir):
return os.path.join(cachedir, 'thin', 'thin.tgz') return os.path.join(cachedir, 'thin', 'thin.tgz')
def _is_shareable(mod):
'''
Return True if module is share-able between major Python versions.
:param mod:
:return:
'''
# This list is subject to change
shareable = ['salt', 'jinja2',
'msgpack', 'certifi']
return os.path.basename(mod) in shareable
def _add_dependency(container, obj): def _add_dependency(container, obj):
''' '''
Add a dependency to the top list. Add a dependency to the top list.