mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
For Python 3.5 add the VC14 CRT DLLs
This commit is contained in:
10
build.py
10
build.py
@@ -1218,7 +1218,7 @@ def copyWxDlls(options):
|
||||
return
|
||||
|
||||
if isWindows:
|
||||
# Copy the wxWidgets DLLs to the wxPython pacakge folder
|
||||
# Copy the wxWidgets DLLs to the wxPython package folder
|
||||
msw = getMSWSettings(options)
|
||||
cfg = Config()
|
||||
|
||||
@@ -1236,6 +1236,14 @@ def copyWxDlls(options):
|
||||
if options.cairo:
|
||||
dlls += glob.glob(os.path.join(os.environ['CAIRO_ROOT'], 'bin', '*.dll'))
|
||||
|
||||
# For Python 3.5 builds we also need to copy some VC14 redist DLLs
|
||||
if PYVER == '3.5':
|
||||
arch = 'x64' if PYTHON_ARCH == '64bit' else 'x86'
|
||||
redist_dir = os.path.join(
|
||||
phoenixDir(), 'packaging', 'Py3.5', 'vcredist',
|
||||
arch, 'Microsoft.VC140.CRT', '*.dll')
|
||||
dlls += glob.glob(redist_dir)
|
||||
|
||||
for dll in dlls:
|
||||
copyIfNewer(dll, posixjoin(phoenixDir(), cfg.PKGDIR, os.path.basename(dll)), verbose=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user