tell pyinstaller to manually include ykman/VERSION

This commit is contained in:
Jay Lee
2021-02-11 19:17:14 +00:00
parent 5636876e42
commit e9bc63bee8

View File

@@ -11,6 +11,10 @@ sys.modules['FixTk'] = None
proot = os.path.dirname(importlib.import_module('httplib2').__file__)
extra_files = [(os.path.join(proot, 'cacerts.txt'), 'httplib2')]
# dynamically determine where ykman/VERSION lives
yroot = os.path.dirname(importlib.import_module('ykman').__file__)
extra_files += [(os.path.join(yroot, 'VERSION'), 'ykman')]
extra_files += copy_metadata('google-api-python-client')
extra_files += [('cbcm-v1.1beta1.json', '.')]
extra_files += [('contactdelegation-v1.json', '.')]