MCPcopy Create free account
hub / github.com/cztomczak/cefpython / generate_cefpython_module_variables

Function generate_cefpython_module_variables

tools/build.py:706–723  ·  view source on GitHub ↗

Global variables that will be appended to cefpython.pyx sources.

()

Source from the content-addressed store, hash-verified

704
705
706def generate_cefpython_module_variables():
707 """Global variables that will be appended to cefpython.pyx sources."""
708 ret = ('__version__ = "{0}"\n'.format(VERSION))
709 version = get_cefpython_version()
710 chrome_version = "{0}.{1}.{2}.{3}".format(
711 version["CHROME_VERSION_MAJOR"], version["CHROME_VERSION_MINOR"],
712 version["CHROME_VERSION_BUILD"], version["CHROME_VERSION_PATCH"])
713 ret += ('__chrome_version__ = "{0}"\n'.format(chrome_version))
714 ret += ('__cef_version__ = "{0}"\n'.format(version["CEF_VERSION"]))
715 ret += ('__cef_api_hash_platform__ = "{0}"\n'
716 .format(version["CEF_API_HASH_PLATFORM"]))
717 ret += ('__cef_api_hash_universal__ = "{0}"\n'
718 .format(version["CEF_API_HASH_UNIVERSAL"]))
719 ret += ('__cef_commit_hash__ = "{0}"\n'
720 .format(version["CEF_COMMIT_HASH"]))
721 ret += ('__cef_commit_number__ = "{0}"\n'
722 .format(version["CEF_COMMIT_NUMBER"]))
723 return ret
724
725
726def except_all_missing(content):

Callers 1

copy_and_fix_pyx_filesFunction · 0.85

Calls 1

get_cefpython_versionFunction · 0.85

Tested by

no test coverage detected