1616 proceeding. Only unit tests will be run in such case.
1717 --no-rebuild Do not rebuild cefpython modules. For internal use
1818 so that changes to packaging can be quickly tested.
19+ --no-automate Do not run automate.py --prebuilt-cef. This flag
20+ allows to use CEF prebuilt binaries and libraries
21+ downloaded from CEF Python's Github releases to
22+ build distribution pacakges.
1923
2024
2125This script does the following:
6872VERSION = ""
6973NO_RUN_EXAMPLES = False
7074NO_REBUILD = False
75+ NO_AUTOMATE = False
7176
7277# Python versions
7378SUPPORTED_PYTHON_VERSIONS = [(2 , 7 ), (3 , 4 ), (3 , 5 ), (3 , 6 )]
@@ -118,13 +123,15 @@ def main():
118123 if not os .path .exists (DISTRIB_DIR ):
119124 os .makedirs (DISTRIB_DIR )
120125 if pythons_32bit :
121- run_automate_prebuilt_cef (pythons_32bit [0 ])
126+ if not NO_AUTOMATE :
127+ run_automate_prebuilt_cef (pythons_32bit [0 ])
122128 pack_prebuilt_cef ("32bit" )
123129 if LINUX :
124130 reduce_package_size_issue_262 ("32bit" )
125131 remove_unnecessary_package_files ("32bit" )
126132 if pythons_64bit :
127- run_automate_prebuilt_cef (pythons_64bit [0 ])
133+ if not NO_AUTOMATE :
134+ run_automate_prebuilt_cef (pythons_64bit [0 ])
128135 pack_prebuilt_cef ("64bit" )
129136 if LINUX :
130137 reduce_package_size_issue_262 ("64bit" )
@@ -141,7 +148,7 @@ def main():
141148
142149
143150def command_line_args ():
144- global VERSION , NO_RUN_EXAMPLES , NO_REBUILD
151+ global VERSION , NO_RUN_EXAMPLES , NO_REBUILD , NO_AUTOMATE
145152 version = get_version_from_command_line_args (__file__ )
146153 if not version or "--help" in sys .argv :
147154 print (__doc__ )
@@ -153,6 +160,9 @@ def command_line_args():
153160 if "--no-rebuild" in sys .argv :
154161 NO_REBUILD = True
155162 sys .argv .remove ("--no-rebuild" )
163+ if "--no-automate" in sys .argv :
164+ NO_AUTOMATE = True
165+ sys .argv .remove ("--no-automate" )
156166 args = sys .argv [1 :]
157167 for arg in args :
158168 if arg == version :
@@ -181,8 +191,9 @@ def clean_build_directories():
181191 delete_cefpython_binary_dir ("64bit" )
182192
183193 # Delete cef binaries and libraries dirs
184- delete_cef_binaries_libraries_dir ("32bit" )
185- delete_cef_binaries_libraries_dir ("64bit" )
194+ if not NO_AUTOMATE :
195+ delete_cef_binaries_libraries_dir ("32bit" )
196+ delete_cef_binaries_libraries_dir ("64bit" )
186197
187198
188199def delete_cefpython_binary_dir (arch ):
0 commit comments