Skip to content

Commit

Permalink
Also include python35.dll, vcruntime140.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Aug 8, 2016
1 parent 4e71565 commit 69bb314
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def main():
designer_plugin_destination = os.path.join(designer_destination, 'plugins', 'designer')
os.makedirs(designer_plugin_destination, exist_ok=True)
shutil.copy(designer_plugin_path, designer_plugin_destination)
python_dll_path = os.path.join('venv', 'Scripts', 'python35.dll')
shutil.copy(python_dll_path, designer_destination)

windeployqt_path = os.path.join('c:/', 'Qt', 'Qt5.7.0', '5.7', 'msvc2015', 'bin', 'windeployqt.exe'),
windeployqt = subprocess.Popen(
Expand All @@ -35,11 +37,16 @@ def main():
# copy it ourselves
redist_path = os.path.join(
'c:/', 'Program Files (x86)', 'Microsoft Visual Studio 14.0', 'VC',
'redist', 'x86', 'Microsoft.VC140.CRT', 'msvcp140.dll'
'redist', 'x86', 'Microsoft.VC140.CRT'
)
redist_destination = os.path.join(designer_destination, os.path.basename(redist_path))
shutil.copyfile(redist_path, redist_destination)
os.chmod(redist_destination, stat.S_IWRITE)
redist_files = [
'msvcp140.dll',
'vcruntime140.dll'
]
for file in redist_files:
dest = os.path.join(designer_destination, file)
shutil.copyfile(os.path.join(redist_path, file), dest)
os.chmod(dest, stat.S_IWRITE)


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion buildinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
'.'.join([str(v) for v in version_numbers])
+ status.prerelease_suffix
# TODO: this is totally cheating, revisit the revision scheme
+ '3'# prerelease_str
+ '4'# prerelease_str
)

directories = [
Expand Down

0 comments on commit 69bb314

Please sign in to comment.