()
| 103 | |
| 104 | |
| 105 | def main(): |
| 106 | command_line_args() |
| 107 | supported = list() |
| 108 | for version in SUPPORTED_PYTHON_VERSIONS: |
| 109 | supported.append("{major}.{minor}".format(major=version[0], |
| 110 | minor=version[1])) |
| 111 | print("[build_distrib.py] Supported python versions: {supported}" |
| 112 | .format(supported=" / ".join(supported))) |
| 113 | clean_build_directories() |
| 114 | if WINDOWS: |
| 115 | pythons_32bit = search_for_pythons("32bit") |
| 116 | pythons_64bit = search_for_pythons("64bit") |
| 117 | elif LINUX: |
| 118 | pythons_32bit = search_for_pythons("32bit") if ARCH32 else list() |
| 119 | pythons_64bit = search_for_pythons("64bit") if ARCH64 else list() |
| 120 | elif MAC: |
| 121 | pythons_32bit = list() |
| 122 | pythons_64bit = search_for_pythons("64bit") |
| 123 | else: |
| 124 | print("ERROR: Unsupported OS") |
| 125 | sys.exit(1) |
| 126 | check_pythons(pythons_32bit, pythons_64bit) |
| 127 | install_upgrade_requirements(pythons_32bit + pythons_64bit) |
| 128 | uninstall_cefpython3_packages(pythons_32bit + pythons_64bit) |
| 129 | if not os.path.exists(DISTRIB_DIR): |
| 130 | os.makedirs(DISTRIB_DIR) |
| 131 | if pythons_32bit: |
| 132 | if not NO_AUTOMATE: |
| 133 | run_automate_prebuilt_cef(pythons_32bit[0]) |
| 134 | pack_prebuilt_cef("32bit") |
| 135 | if LINUX: |
| 136 | reduce_package_size_issue262("32bit") |
| 137 | remove_unnecessary_package_files("32bit") |
| 138 | if pythons_64bit: |
| 139 | if not NO_AUTOMATE: |
| 140 | run_automate_prebuilt_cef(pythons_64bit[0]) |
| 141 | pack_prebuilt_cef("64bit") |
| 142 | if LINUX: |
| 143 | reduce_package_size_issue262("64bit") |
| 144 | remove_unnecessary_package_files("64bit") |
| 145 | if not NO_REBUILD: |
| 146 | build_cefpython_modules(pythons_32bit, "32bit") |
| 147 | build_cefpython_modules(pythons_64bit, "64bit") |
| 148 | if pythons_32bit: |
| 149 | make_packages(pythons_32bit[0], "32bit", pythons_32bit) |
| 150 | if pythons_64bit: |
| 151 | make_packages(pythons_64bit[0], "64bit", pythons_64bit) |
| 152 | test_wheel_packages(pythons_32bit + pythons_64bit) |
| 153 | show_summary(pythons_32bit, pythons_64bit) |
| 154 | |
| 155 | |
| 156 | def command_line_args(): |
no test coverage detected