Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 682e273

Browse filesBrowse files
committed
Add --no-automate flag to build_distrib.py tool
1 parent 70883c5 commit 682e273
Copy full SHA for 682e273

File tree

Expand file treeCollapse file tree

1 file changed

+16
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-5
lines changed
Open diff view settings
Collapse file

‎tools/build_distrib.py‎

Copy file name to clipboardExpand all lines: tools/build_distrib.py
+16-5Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
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
2125
This script does the following:
@@ -68,6 +72,7 @@
6872
VERSION = ""
6973
NO_RUN_EXAMPLES = False
7074
NO_REBUILD = False
75+
NO_AUTOMATE = False
7176

7277
# Python versions
7378
SUPPORTED_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

143150
def 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

188199
def delete_cefpython_binary_dir(arch):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.