Skip to content

Commit c450c5b

Browse files
committed
Update tools
1 parent d3d9b3c commit c450c5b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

tools/make_installer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def main():
102102
create_empty_log_file(os.path.join(PKG_DIR, "debug.log"))
103103
create_empty_log_file(os.path.join(PKG_DIR, "examples/debug.log"))
104104

105+
# Remove screenshot.png
106+
screenshot_png = os.path.join(PKG_DIR, "examples", "screenshot.png")
107+
if os.path.exists(screenshot_png):
108+
os.remove(screenshot_png)
109+
105110
copy_cpp_extension_dependencies_issue359(PKG_DIR)
106111

107112
print("[make_installer.py] Done. Installer package created: {setup_dir}"
@@ -377,13 +382,13 @@ def copy_cpp_extension_dependencies_issue359(pkg_dir):
377382
if os.path.exists(os.path.join(pkg_dir, "cefpython_py27.pyd")):
378383
if ARCH32:
379384
search_paths = [
380-
# This runtime version is shipped with Python 2.7.14
385+
# This runtime version is shipped with Python 2.7.15
381386
r"c:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b"
382387
r"_9.0.30729.1_none_e163563597edeada\msvcp90.dll",
383388
]
384389
else:
385390
search_paths = [
386-
# This runtime version is shipped with Python 2.7.14
391+
# This runtime version is shipped with Python 2.7.15
387392
r"c:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b"
388393
r"_9.0.30729.1_none_99b61f5e8371c1d4\msvcp90.dll",
389394
]

tools/requirements.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Installs Python dependencies using the pip tool.
33
See the requirements.txt file.
4-
pip install --upgrade -r ../tools/requirements.txt
4+
python -m pip install --upgrade -r ../tools/requirements.txt
55
"""
66

77
from common import *
@@ -13,7 +13,8 @@ def main():
1313
if sys.executable.startswith("/usr/"):
1414
args.append("sudo")
1515
requirements = os.path.join(TOOLS_DIR, "requirements.txt")
16-
args.extend(["pip", "install", "--upgrade", "-r", requirements])
16+
args.extend([sys.executable, "-m", "pip", "install", "--upgrade",
17+
"-r", requirements])
1718
retcode = subprocess.call(args)
1819
sys.exit(retcode)
1920

0 commit comments

Comments
 (0)