Skip to content

Commit

Permalink
Update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 26, 2018
1 parent d3d9b3c commit c450c5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions tools/make_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def main():
create_empty_log_file(os.path.join(PKG_DIR, "debug.log"))
create_empty_log_file(os.path.join(PKG_DIR, "examples/debug.log"))

# Remove screenshot.png
screenshot_png = os.path.join(PKG_DIR, "examples", "screenshot.png")
if os.path.exists(screenshot_png):
os.remove(screenshot_png)

copy_cpp_extension_dependencies_issue359(PKG_DIR)

print("[make_installer.py] Done. Installer package created: {setup_dir}"
Expand Down Expand Up @@ -377,13 +382,13 @@ def copy_cpp_extension_dependencies_issue359(pkg_dir):
if os.path.exists(os.path.join(pkg_dir, "cefpython_py27.pyd")):
if ARCH32:
search_paths = [
# This runtime version is shipped with Python 2.7.14
# This runtime version is shipped with Python 2.7.15
r"c:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b"
r"_9.0.30729.1_none_e163563597edeada\msvcp90.dll",
]
else:
search_paths = [
# This runtime version is shipped with Python 2.7.14
# This runtime version is shipped with Python 2.7.15
r"c:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b"
r"_9.0.30729.1_none_99b61f5e8371c1d4\msvcp90.dll",
]
Expand Down
5 changes: 3 additions & 2 deletions tools/requirements.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Installs Python dependencies using the pip tool.
See the requirements.txt file.
pip install --upgrade -r ../tools/requirements.txt
python -m pip install --upgrade -r ../tools/requirements.txt
"""

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

Expand Down

0 comments on commit c450c5b

Please sign in to comment.