()
| 97 | |
| 98 | |
| 99 | def main(): |
| 100 | command_line_args() |
| 101 | print("[build.py] Python version: {ver} {arch}" |
| 102 | .format(ver=platform.python_version(), arch=ARCH_STR)) |
| 103 | print("[build.py] Python executable: %s" % sys.executable) |
| 104 | print("[build.py] PYVERSION = %s" % PYVERSION) |
| 105 | print("[build.py] OS_POSTFIX2 = %s" % OS_POSTFIX2) |
| 106 | check_cython_version() |
| 107 | check_directories() |
| 108 | setup_environ() |
| 109 | if os.path.exists(CEFPYTHON_API_HFILE): |
| 110 | fix_cefpython_api_header_file() |
| 111 | if WINDOWS: |
| 112 | compile_cpp_projects_with_setuptools() |
| 113 | elif MAC or LINUX: |
| 114 | compile_cpp_projects_unix() |
| 115 | else: |
| 116 | print("[build.py] INFO: Looks like first run, as" |
| 117 | " cefpython_py{pyver}.h is missing. Skip building" |
| 118 | " C++ projects." |
| 119 | .format(pyver=PYVERSION)) |
| 120 | global FIRST_RUN |
| 121 | FIRST_RUN = True |
| 122 | clear_cache() |
| 123 | copy_and_fix_pyx_files() |
| 124 | build_cefpython_module() |
| 125 | fix_cefpython_api_header_file() |
| 126 | install_and_run() |
| 127 | |
| 128 | |
| 129 | def command_line_args(): |
no test coverage detected